[SOLVED] inline module via pretty url will replace content

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mmarius
New Member
New Member
Posts: 3
Joined: Tue Jun 28, 2011 4:43 pm

[SOLVED] inline module via pretty url will replace content

Post by mmarius »

Hi,

If i acces a page with an inline module via pretty url registered by module, all {content} or {AdvancedContent} gets replaced, not just the {module_tag}.

inside SetParameters():

$listparams2 = array('action' => 'default', 'inline' => 1);
$lang = 'en';

$this->RegisterRoute($lang . '/[mM]armelada\/(?P<returnid>[0-9]+)\/(?P<junk>[A-Za-z][A-Za-z0-9_].+)\/page(?P<pagenumber>[0-9]*?)$/', $listparams2);

$this->RegisterRoute($lang . '/[mM]armelada\/(?P<returnid>[0-9]+)\/(?P<junk>[A-Za-z][A-Za-z0-9_].+)$/', $listparams2);

Thx,
Marius.
Last edited by mmarius on Wed Sep 21, 2011 3:24 pm, edited 1 time in total.
Foaly*
Translator
Translator
Posts: 150
Joined: Sun Mar 29, 2009 3:32 pm
Location: London

Re: inline module via pretty url will replace content

Post by Foaly* »

I'm also suffering from that and never found a solution. Now there's a thread on it again (there was one 5 or 6 years ago). I hope that I can get some information here...
Post Reply

Return to “Developers Discussion”