WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Availor on July 03, 2008, 05:28:54 PM

Title: Blog like menu code
Post by: Availor on July 03, 2008, 05:28:54 PM
Hello,

I'm trying to make a new template http://www.videoxone.com/demo/baker1/pages/news-test.php - but it didn't work out so well.

I am trying to create something like this (picture attached). I have seen WebsiteBaker powered websites use this - is there a code snippet for that? (Didn't find anything in the search)

[gelöscht durch Administrator]
Title: Re: Blog like menu code
Post by: kweitzel on July 03, 2008, 08:43:24 PM
this is a Backend View in a RTL (right to left) language. If I am not mistaken, this is hebraeic.

If I look at your Testlink, it seems like you want something else, more blog related to show. Correct?

cheers

Klaus
Title: Re: Blog like menu code
Post by: Stefek on July 03, 2008, 08:56:06 PM
It's a really nice Template you have choosen. Availor.

But as Klaus, I don't really understand, what you try to do.

Please upload the screenshot again, for I really like the Template, and think it's worth to be acomplished.

Best Regards,
Stefek
Title: Re: Blog like menu code
Post by: Availor on July 03, 2008, 11:30:12 PM
LoL, sorry wrong screenshot  :-D That one was a tutorial for some guy...
This is Hebrew language actually.

Here is the screenshot I meant  :mrgreen:

[gelöscht durch Administrator]
Title: Re: Blog like menu code
Post by: kweitzel on July 04, 2008, 08:47:39 AM
OK ... that looks more like it. Anyway, I moved your Languaefile Post into the language section.

Anyway: For the Publishdate look here: https://forum.WebsiteBaker.org/index.php/topic,7475.0.html

This Footerline of yours, do you actually "create" it in the Options of the newsmodule? Then you should have all the Variables ...

cheers

Klaus
Title: Re: Blog like menu code
Post by: Availor on July 04, 2008, 09:02:54 AM
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: [Select]
<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>
Title: Re: Blog like menu code
Post by: kweitzel on July 04, 2008, 09:13:13 AM
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
Title: Re: Blog like menu code
Post by: Availor on July 05, 2008, 12:58:28 PM
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.
Title: Re: Blog like menu code
Post by: kweitzel on July 05, 2008, 04:56:12 PM
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
Title: Re: Blog like menu code
Post by: Availor on July 05, 2008, 10:00:58 PM
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.