Share » Forums » Developer » Node and module question

Node and module question

Node and module question

Monday 30 May 2005 7:20:30 am - 4 replies

Modified on Tuesday 31 May 2005 2:19:30 am by Clemens T

Author Message

kracker (the)

The Doctor

Monday 30 May 2005 12:33:38 pm

Your urls should not contain a question mark ( " ? " )...

//kracker
<i>eminem : stan (instrumental)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Clemens T

Monday 30 May 2005 3:04:27 pm

You can change this with url-rewrite, but on my system the base ezPublish url is:
http://mysite.com/index.php?/mydesign/ and this works fine (every module I install works fine, and the entire ezPublish install works fine.. that's not the problem... it's just a setting somewhere in httpd.conf or something [there is documentation on this]).

BUT can you comment on the template code? Am I doing something awefully stupid or.. does it make sense? And the myview.php looks like this (partial content):

...
$Result['content'] =& $tpl->fetch( 'design:myModule/myview.tpl' );
$Result['path'] = array( array( 'url' => false,
                                'text' => 'List of Folders' ) );
...

Thank you!
Greetins,
Clemens

Clemens T

Tuesday 31 May 2005 12:49:50 am

Ps: Important to note is that NODE 86 is a item in the contenttree which I want as base for this module. It does not have anything to do with the position of the module on the site (url of the module is different from the node in the tree)

Clemens T

Tuesday 31 May 2005 1:42:21 am

I fixed it adding this in myview.php:

(partial content)
...
$Module =& $Params["Module"];
$tpl->setVariable('module',$Module);
...

and then in myview.tpl

(partial content)
...
<a href="{concat($module.functions.myview.uri|ezurl(no),"/",$:item.node_id)}">&gt; {$:item.name}</a><br />
...

Thanks for your help Kracker.

HOPEFULLY you can still comment on my method, if it's the way to go...

Greetings,
Clemens

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu