WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Blog like menu code

<< < (2/2)

Availor:
I have tried inserting the loop snippets and it doesn't work. I put this code inside the index.php not from the backend http://www.videoxone.com/demo/baker1/pages/news-test.php
This is the code snippet from the template

--- Code: ---<div class="postbottom">
          <ul>
            <li class="permalink"><a href="[LINK]">[TEXT_READ_MORE]</a></li>
            <li class="cats"><a href="#">[GROUP_TITLE]</a></li>
            <li class="auth"><a href="#"> [DISPLAY_NAME] ([USERNAME]) </a></li>
            <li class="date">[PUBLISHED_DATE]</li>
            <li class="comnts"><a href="[ADD_COMMENT_URL]">Add Comment</a></li>
          </ul>
        </div>

--- End code ---

kweitzel:
OK ... that is the issue ... put them into the backend of the newsmodule or define the variables which are beeing filled by these "placeholders".

cheers

klaus

Availor:
It is impossible to put them in the backend, as I wanted to create a template that will automatically show you the first news comments and group from the template itself.

kweitzel:
OK, then you will need to write some code around it and pull the data from the backend. In General those placeholders are not available to the frontend since they are processed before beeing passed on to the display.

Have a look at the anynews snippet and use that one as the base for what you want to display. You will need to pull all the required fields from the Database.

cheers

Klaus

Availor:
I am familiar with anynews module, I jsut noticed some WebsiteBaker based websites use similar kind of code so I thought that perhaps it is some kind of code snippet that I don't know about.

Navigation

[0] Message Index

[*] Previous page

Go to full version