Short Path vs Template Path
  • Hi,

    The exchange between short and template path is reversalble ? Because If I change the Custodian publication from short to template path I get errors like :

    Fatal error: Call to a member function defined() on a non-object in /var/www/campsite-demo/template_engine/classes/CampURITempla tePath.php on line 138

    What causes this error ?
  • 4 Comments sorted by
  • Yes, you can switch between these URL types anytime you want. But it's
    better to use just one of them after you go public.

    The template path URL was maintained only for backward compatibility and was
    not tested so thoroughly - it may have bugs. I don't see the reason why
    anyone would use it.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Thu, Sep 23, 2010 at 12:45 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > The exchange between short and template path is reversalble ? Because If I
    > change the Custodian publication from short to template path I get errors
    > like :
    >
    > Fatal error: Call to a member function defined() on a non-object in
    > /var/www/campsite-demo/template_engine/classes/CampURITempla tePath.php on
    > line 138
    >
    > What causes this error ?
    >
    >

  • I use the template paths for debug reasons. I want to know what page to run, so I dont have to change the templates inside the publication/section/issues !
  • Switch to short URL and use the tpl parameter for choosing a certain
    template.

    E.g.:
    http://site.com/?tpl=214

    Get the template identifier from the admin interface:
    menu->configure->templates. The template identifier is listed in the
    "template id" column.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Thu, Sep 23, 2010 at 2:09 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > I use the template paths for debug reasons. I want to know what page to
    > run, so I dont have to change the templates inside the
    > publication/section/issues !
    >

  • thanks !