Developer forum

Forum » Templates » How to use bloglist in page templates?

How to use bloglist in page templates?


Reply

I've just inserted the webblog module into a paragraph.


My problem is as follows:


 


I have a new design with a footer that always should include the latest blogheadlines (latest 5 ex.). My footer is a part of mya pagetemplate since I want it to appear on all pages.


 


Are there any global tags for the weblog that I can use for this purpose?


 


I'd rather not want to make a special paragraph template with this footer included. Reason to this is that;  1. I think it's a non-smart solution and 2. It would be nessescary to copy a global paragraph with the weblog module, for each new page I create.


 


Are there any other solutions to this?


 


Btw. I want split the blogcategories into two columns in the footer.


 


My wishlist on Dwtags :-)


 





 


 


Best regards


Andreas


Replies

 
Reply

Hi Andreas


 


You can use the following tag to use a paragraph directly in the pagetemplate.


@Global:Paragraph.Content(paragraphid)


 


The you change the 'paragraphid' section with the actual id of the paragraph.


You can get the id of the paragraph by hovering the mouse over the paragraphname in the administration.


 


The paragraphid will then be visible in the statusbar.


 


// Sebastian

 
Reply
Thanks Sebastian

 




But I've allready tested that solution (I used <!--@DwGlobalParagraph(ID)--> though) without success. The problem is that I only want to present the list of posts from a specific blog (category). Atm when I use this tag the whole paragraph is inserted and that includes way to much information like search, select blog, login etc etc.


 


The globaltag is very handy otherwise, but since I don't know how to pick out specific information from the weblog module paragraph I can't use it.


 


Is it possible to redesign the template for the blogmodule to just present a list of the latest posts (from a specific blog/category) without presenting the login, all categories, blogs etc?


 


//Andreas





 

 
Reply
andreas.matilainen@skapa.se wrote:

Thanks Sebastian



 








But I've allready tested that solution (I used <!--@DwGlobalParagraph(ID)--> though) without success. The problem is that I only want to present the list of posts from a specific blog (category). Atm when I use this tag the whole paragraph is inserted and that includes way to much information like search, select blog, login etc etc.




 




The globaltag is very handy otherwise, but since I don't know how to pick out specific information from the weblog module paragraph I can't use it.




 




Is it possible to redesign the template for the blogmodule to just present a list of the latest posts (from a specific blog/category) without presenting the login, all categories, blogs etc?




 




//Andreas








A workaround might be to use RSS in the pagetemplate if that is possible?

 





 

 
Reply

Hi Andreas


 


1. Create a hidden paragraph with the weblog module.


2. Edit the templates 'ListArticle.html' or 'ListBlog.html' so you get rid of search, categories, team and archive.


3. Add it to the pagetemplate with @Global:Paragraph.Content(paragraphid)


 


I think that should do the trick.


 


 // Sebastian

 
Reply
Dammark wrote:


Hi Andreas




 




1. Create a hidden paragraph with the weblog module.




2. Edit the templates 'ListArticle.html' or 'ListBlog.html' so you get rid of search, categories, team and archive.




3. Add it to the pagetemplate with @Global:Paragraph.Content(paragraphid)




 




I think that should do the trick.




 




 // Sebastian





 


1. A hidden paragraph? eh, I know how to hide a page, but not a paragraph.


 


2. All done.


 


3. Done that aswell.


 


Problem: It seems like the paragraph with the weblog list (module) have some hidden code that are inserted or missing? My layout gets messed up as you can se in image below.


 


This is the footer before globaltag is being used. The weblog list is supposed to be placed at position "info2" (below TEKNIKNYTT)


http://screencast.com/t/cBYGoGwMCI


 


This is what it looks like when inserted:

http://screencast.com/t/eCzWYa9Bg


 


Notice the duplicated list above (its the paragraphs page that I don't know how to handle)


 

 
Reply
andreas.matilainen@skapa.se wrote:

Dammark wrote:





Hi Andreas








 








1. Create a hidden paragraph with the weblog module.








2. Edit the templates 'ListArticle.html' or 'ListBlog.html' so you get rid of search, categories, team and archive.








3. Add it to the pagetemplate with @Global:Paragraph.Content(paragraphid)








 








I think that should do the trick.








 








 // Sebastian










 




1. A hidden paragraph? eh, I know how to hide a page, but not a paragraph.




 




2. All done.




 




3. Done that aswell.




 




Problem: It seems like the paragraph with the weblog list (module) have some hidden code that are inserted or missing? My layout gets messed up as you can se in image below.




 




This is the footer before globaltag is being used. The weblog list is supposed to be placed at position "info2" (below TEKNIKNYTT)




http://screencast.com/t/cBYGoGwMCI




 




This is what it looks like when inserted:



http://screencast.com/t/eCzWYa9Bg




 




Notice the duplicated list above (its the paragraphs page that I don't know how to handle)




 



The problem is almost solved now. :-)

By stripping the paragraph template so that it only contains the tag <!--@ParagraphModule-->

 


the layout now look as it should in the footer.


The only problem left is to present the fully blogpost in the contentarea without showing it in the footer. Right now the footer shows the same info as in the contentarea, when a blogpost has been clicked. :-/ 

 

You must be logged in to post in the forum