Linking Templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trovador
    New Member
    • Dec 2004
    • 12

    Linking Templates

    Hello!
    Im trying to link a template from a different one..
    What I mean is if I can have the Forumhome linked to a template with the name forumhome2 for instance.
    I was wondering if this is possible.

    Thanks for the help.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    You can just paste the contents of "forumhome2" into "forumhome". This way "forumhome2" shows instead of "forumhome".

    Comment

    • Trovador
      New Member
      • Dec 2004
      • 12

      #3
      What I am interested in is link the forumhome to
      the forumhome2 with an URL, but I don't want to put
      the template forumhome 2 inside forumhome. I want them separated

      EDIT: view the Attach Files. Thanks
      Attached Files
      Last edited by Trovador; Thu 27 Jan '05, 6:28am.

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Try using this code in the FORUMHOME template:

        Code:
        <if condition="$_REQUEST[f2]">
        	CONTENTS OF FORUMHOME2
        <else />
        	CONTENTS OF FORUMHOME1
        </if>
        Then you can use a URL like this:

        Comment

        • Trovador
          New Member
          • Dec 2004
          • 12

          #5
          Thanks, thats what I was asking for, if in any moment I decide to put more than two Forumhome (forumhome3, forumhome4) what should I add to the code?
          Thanks

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            The if else structure isn't very "clean" beyond 2 conditions. The code would look like this:

            Code:
            <if condition="$_REQUEST[f4]">
            	CONTENTS OF FORUMHOME4
            <else />
            	<if condition="$_REQUEST[f3]">
            		CONTENTS OF FORUMHOME3
            	<else />
            		<if condition="$_REQUEST[f2]">
            			CONTENTS OF FORUMHOME2
            		<else />
            			CONTENTS OF FORUMHOME1
            		</if>
            	</if>
            </if>

            Comment

            • Trovador
              New Member
              • Dec 2004
              • 12

              #7
              Thanks!!!

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎