TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 307
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 246
  • Total: 247
  • lurkalot

conditional blocks-or articles - if(something) display thisBlock

Started by juglesh, December 19, 2005, 04:32:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

juglesh

Hello, I was wondering about conditional blocks on my front page.ÂÃ,  likeif($_GET['block']=="gallery"
{//display the block with title 'gallery' and dont display the articles
}else{// just display the articles}


Oh, wait, maybe I need to display the article conditionaly.  Or can there be a block that is all the articles?  Maybe there needs to be another option on the frontpage settings: Frontpage blocks and articles

thanks for your time,
juglesh

bloc

This is something I am working with now - the option of having one article or several in a block. So you can use the "frontblocks" as usual and also have any articles you like in it.

juglesh


That'll be cool.

I've pretty much solved that problem for now with static Pages mod (I really didnt want an article in the block, I wanted html, where i could do an Iframe, etc.)

So thanks, I do think articles in blocks will be handy as well.

thanks for tiny portal,
juglesh

This website is proudly hosted on Crocweb Cloud Website Hosting.