Page 1 of 1

Link being rewritten incorrectly

Posted: Fri Mar 25, 2005 6:56 pm
by DavidU
Let's say my site is www.domain.com and I have CMSMS set up to run under http://www.domain.com/content.

I have category pages I want to appear in my menu (I'm using {bulletmenu}), and I want to put links in the content of these category pages which point to other pages also being managed by CMSMS but not in the menu.  So the direct link to the interior (non-menu'd) page would be, say, http://www.domain.com/content/index.php ... Page.  I try to add that link in the content editor in the category page.  Something must be set up wrong on my site, because no matter how I try to enter the link, whether thru tinyMCE or the raw HTML editor, the link keeps getting rewritten and saved incorrectly.  When I look at the HTML source for the content of the category page, the link location is generally is getting changed to /content/content/index.php?page=Interior_Page , but sometimes I've seen /content/content/content/index.php?page=Interior_Page.  I've tried writing the link location as

index.php?page=Interior_page
or /content/index.php?page=Interior_Page
or even http://www.domain.com/content/index.php ... erior_Page

but no matter what I try, it won't take what I put in there and leave it alone.  Is there any way I can override this re-writing behavior or, preferably, to just have it work correctly?  (Working correctly being defined in this case as "Working the way I think it should work" :) )

the relevant lines from my config.php are:
$config['root_url'] = 'http://www.domain.com/content';
$config['root_path'] = '/home/domain/www/www/content';
$config['query_var'] = 'page';

Thanks,
David

Re: Link being rewritten incorrectly

Posted: Fri Mar 25, 2005 8:52 pm
by DavidU
Never mind.  Found {cms_selflink}.  I is a dumbass.

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 12:12 am
by DavidU
Aha, but how do I use {cms_selflink} with an ?

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 12:45 am
by DavidU
To clarify, I want to create an tagset surrounding an , e.g.,

I tried putting the image tag text within the "text" attribute of the {cms_selflink} tag, but that just created a mess, with the mixture of quotes and so on, even if I tried to use character entities instead of quote marks...

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 1:38 am
by Ted
Well, I messed with this a little bit.  I got it working with:

Code: Select all

<p>{cms_selflink page='1' text='<img src="blah.jpg" border="0" />'}</p>
Hope that helps...

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 1:43 am
by DavidU
I'll give it a shot and let you know...

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 1:50 am
by DavidU
Poifekt.  Worked like a charm.  That was the one combination of quotes I didn't try. :)

Re: Link being rewritten incorrectly

Posted: Sat Mar 26, 2005 2:20 am
by Ted
I usually go for single quotes in smarty tags, since double quotes is the "correct" way to do XHTML.  It keeps me from getting confused.  :)