Judah Raine
Total posts: 332
25 Нояб 2012 01:35

I have spent an entire day sifting through templates and still cannot find the dratted "> that appears as follows:

I have identified it (I think) on Firebug as being part of the url field:

I am trying to achieve this:

You copy and edit fields templates and ensure that field image return only image and field URL only URL withut HTML. Then in template

fields_by_id[10]->result, $item->fields_by_id[12]->result);?>

where 10 is ID of the URL field and 12 is and ID of the image field.

I am using the gallery field and not the image field, and am still trying to work out how to get the url to output only url without html, but have now been sidetracked with the dratted ">!!

I have thus far only copied the default url output file and called it headerbanner.php, but not changed anything at all.

I am using an input template which I have used for a few other things and which has not brought this "> into anything else, so my assumption is that it's not the input field that's the problem.

That really only leaves the article template, which I've attached. If anyone can spot this - and you probably will first time off - I would be very grateful. I now feel like a complete and utter idiot, and have avoided asking this question... Yes, I'm a dork, so sorry. (But a desperate dork)

Another method is to parse string in article/article list template.

Последние изменения: 02 Март 2014


Sergey
Total posts: 13,748
08 Дек 2012 23:20

This code looks very old. Like for Mighty Resources even. I do not think it will work.


Judah Raine
Total posts: 332
08 Дек 2012 23:33

It has worked where I did not need to incorporate the link into the layout module (article), i.e. when it was set in the fields.

But I think you are right. Many of the field php files in the module are still named meresourcessomething. I gather they simply took the old one and tweaked it to "fit" Cobalt. :D

From what I can see, their layout template simply echoes fields and that's that. I will of course post on the spiral scripts forum but I'm not holding my breath on that score. They seem a lot quicker to take the money than to earn it, in my humble opinion.


Judah Raine
Total posts: 332
09 Дек 2012 22:51

Hi Maik, I am looking into this module as we speak. It's something to do while I wait for spiral scripts to (maybe) get back to me on this. Thanks

Работает на Cobalt