Jump to content

Random Product on Homepage


roban
 Share

Recommended Posts

I have put random product on my home page by adding:

<div class="colMid">

{RANDOM_PROD}

In index.tpl. This works fine for simply adding the Random Product as can be seen on my site. The problem lies in editing Homepage in fckeditor. Since Random products will not show up there, it's a blind edit. I cannot move the table with July Best Sellers to the right of Random Products. Question is: Is there a better way to add Random Products in fckeditor so I can work with it?

Link to comment
Share on other sites

Hi Robert, I don't think it would be desireable to put the random product into the fckeditor - the editor really makes a mess of things anyway, from a valid html standpoint.

You might try something like:

<div class="colMain">

<div style="float: left">

{RANDOM_PROD}

</div>

<div>

{PAGE_CONTENT}

</div>

</div>

<br clear="all" />

untested

Link to comment
Share on other sites

Hi Robert, I don't think it would be desireable to put the random product into the fckeditor - the editor really makes a mess of things anyway, from a valid html standpoint.

You'd better believe it does. Worked like a charm Mark. Many thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...