Cptags marker in article is not replaced by tags

  • rvennix
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #939 by rvennix
Hi Andrea,

Yet another question. I do hope you can help me out with this one. I would like to have full control over the position of the cptags in any article. So I set the option Tags position in Content - Custom Properties Tags Plugin to Custom and added the {cptags} marker to an article template, but the marker is not replaced by tags. I have PHP 5.3.6 and the latest Joamla 2.5 version. You can find an example here
What could be the problem? In the page source the markup of the tag is still preserved. Thanks in advance.

Regards,

Richard

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #941 by andrea_4g
There's a bug :(

Please change line 199 of file plugins/content/cptags/cptags.php, from
Code:
$row->introtext = preg_replace_callback($regex, array (
to:
Code:
$row->$textField = preg_replace_callback($regex, array (

Note: the modified plugin will be part part of the next release of CP

Please Log in or Create an account to join the conversation.

  • rvennix
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #944 by rvennix
Hi Andrea,

Thanks for the reply. I did as you described, but it didn't help so far. Could something else be wrong?

Regards,

Richard

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #945 by andrea_4g
I applied the fix to our demo site and it worked.
Note: by the time you read this message the demo site will be deleted and reloaded, so I took a couple of screenshots:

Attachments:

Please Log in or Create an account to join the conversation.

  • rvennix
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #952 by rvennix
Hi Andrea,

I see it works for you, but still no succes here. I finally got the result I wanted by using a piece of script and css. But I'm still wandering what made the custom position option fail in my case. Any ideas? I tried changing the plugin order, but that didn't help.

Regards,

Richard

Please Log in or Create an account to join the conversation.

Time to create page: 0.186 seconds