Results 1 to 3 of 3

Thread: PHP in templates

  1. #1
    Join Date
    Mar 2007
    Posts
    33

    Default PHP in templates

    I added this php snippet into the category template browse.html
    Code:
    <%php%>$defaultkeyword="$page_title";<%/php%>
    in the hope of generating a keyword using the page title for another application. However, this didn't work.

    How to make the $page_title work within the php code? Thank you.

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    This has nothing to do with php, it's smarty you are wanting

    <%$page_title%>

  3. #3
    Join Date
    Mar 2007
    Posts
    33

    Default

    Hi Bruce,

    Thank you for the information.

    I know <%$page_title%> can be used alone in the template. But in my case the above php code is necessary in order to activate a correspondent script.

    I just want to figure out how to have the <%$page_title%> or its alternatives work in the php code. I tried various expressions, all failed.

Similar Threads

  1. Templates
    By Harkster in forum Pre-Sales Questions
    Replies: 5
    Last Post: 03-15-2008, 09:26 PM
  2. WTB: Templates
    By piet in forum Templates
    Replies: 3
    Last Post: 12-05-2007, 01:56 PM
  3. Templates
    By desmond in forum Templates
    Replies: 11
    Last Post: 09-30-2004, 12:30 PM
  4. Templates
    By richhead in forum v3.2
    Replies: 9
    Last Post: 09-09-2003, 02:44 AM
  5. Different Cat Templates
    By Heiko in forum v5.x
    Replies: 0
    Last Post: 11-11-2002, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •