Link being rewritten incorrectly

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
DavidU

Link being rewritten incorrectly

Post 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
DavidU

Re: Link being rewritten incorrectly

Post by DavidU »

Never mind.  Found {cms_selflink}.  I is a dumbass.
DavidU

Re: Link being rewritten incorrectly

Post by DavidU »

Aha, but how do I use {cms_selflink} with an ?
DavidU

Re: Link being rewritten incorrectly

Post 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...
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Link being rewritten incorrectly

Post 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...
DavidU

Re: Link being rewritten incorrectly

Post by DavidU »

I'll give it a shot and let you know...
DavidU

Re: Link being rewritten incorrectly

Post by DavidU »

Poifekt.  Worked like a charm.  That was the one combination of quotes I didn't try. :)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Link being rewritten incorrectly

Post 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.  :)
Locked

Return to “CMSMS Core”