I use CMS MS 1.0.4. In Edit content Source View I create a link over image: , like it is in tag's help page. I click Save, Open this page again, go to Source mode, and instead of that link I have:
I think it's an editor's bug. Can anybody fix it?
problem with cms_selflink or CMS MS core?
-
Pierre M.
Re: problem with cms_selflink or CMS MS core?
If you think you have find a bug, you should fill a bug report.kazkas wrote: ...I think it's an editor's bug. Can anybody fix it?
http://dev.cmsmadesimple.org/projects/cmsmadesimple
It will help the dev team fixing it. AND you will know when it get fixed.
Pierre M.
-
bladenet
Re: problem with cms_selflink or CMS MS core?
{cms_selflink} produces links, so instead of you just type
{cms_selflink page="alias" image="next.png" text="Next"}
read the tag documentation uder extensions.
{cms_selflink page="alias" image="next.png" text="Next"}
read the tag documentation uder extensions.
-
kazkas
Re: problem with cms_selflink or CMS MS core?
Yes, exept when you nead something more complex than just a text link or image link. Or You want some extra flexibility with image used as link. I.E. how you will set image width/height/class/id with {cms_selflink page="alias" image="next.png" text="Next"} ?bladenet wrote: {cms_selflink} produces links, so instead of you just type
{cms_selflink page="alias" image="next.png" text="Next"}
read the tag documentation uder extensions.
-
bladenet
Re: problem with cms_selflink or CMS MS core?
You're right. that's why i use User definded tags, or export variables to smarty.
you can make smarty variables from whitin modules like this:
or
and then use it in templates like {variablename}
the other option i know is to use a UDT like this:
you need to be sure 'variablename' is a real variable or you've set it up. you can use {get_template_vars} in a template to display the available variables.
Hope i have helped. Cheers.
you can make smarty variables from whitin modules like this:
Code: Select all
$smarty->assign('variablename', $localvariable);
Code: Select all
$smarty->assign('variablename', $this->somefunction(parameter, parameter));
the other option i know is to use a UDT like this:
Code: Select all
global $gCms;
$smarty =& $gCms->GetSmarty();
$variable = $smarty->get_template_vars('variablename');
$othervariable = $smarty->get_template_vars('othervariablename');
return '<a href="'.$variable.'">'.$othervariable.'</a>';
Hope i have helped. Cheers.
-
JM
Re: problem with cms_selflink or CMS MS core?
I am encountering the same problem:
Just paste the example code from the "href" attribute description in the {cms_selflink} tag help to a new page (while the editor's "Source" mode is active) and switch the "Source" view off and on again. The code gets all screwed up.
Example:
Switch to HTML view and back, after this:
This obviously an error and should be fixed. Maybe the solution could be to have the parser ignore every " inside tags (if they are not parsed at all, I don't know that).
Just paste the example code from the "href" attribute description in the {cms_selflink} tag help to a new page (while the editor's "Source" mode is active) and switch the "Source" view off and on again. The code gets all screwed up.
Example:
Switch to HTML view and back, after this:
This obviously an error and should be fixed. Maybe the solution could be to have the parser ignore every " inside tags (if they are not parsed at all, I don't know that).
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problem with cms_selflink or CMS MS core?
okay, that last message tells me that there is an issue with the wysiwyg editor, not with {cms_selflink}. to prove this concept you could try turning the wysiwyg off (in user settings) and see if it still happens.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
