close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Placing Pictures Under NewArticle

Thread began 3/08/2011 5:51 am by KiddaMan | Last modified 3/09/2011 6:33 am by Jason Byrnes | 1275 views | 5 replies |

KiddaMan

Placing Pictures Under NewArticle

WA Team,

Please see www.luxehats.com

I would like to insert an image under the last news article on the home page so that I can include images of products.

Could you please assist in modification ?

Your help is Greatly appreciated !

Sign in to reply to this post

Jason ByrnesWebAssist

the new pod is generated by the webassist/plugins/cms_templates/news.php file.


you could add your image tag just after the following code:

php:
<?php } while ($row_CMStoRS mysql_fetch_assoc($CMStoRS)); ?>
Sign in to reply to this post

KiddaMan

Thanks Jason.

I have added around 20 news pods so that i can use them as other pages for various things. put i am only showing 3 news articles on the home page.

will this code still show the image below the home page news pod even it I have 20 pods ?

Sign in to reply to this post

Jason ByrnesWebAssist

the number of news articles that will be displayed on the news page is driven by this line:
if (!isset($newsArticles)) {
$newsArticles = 2;
}


if you inclrease that number, it will increase the number of articles that will be displayed.


as long as the image is after the while statement:
<?php } while ($row_CMStoRS = mysql_fetch_assoc($CMStoRS)); ?>


the image will still show regardless of how many news articles are displayed.

Sign in to reply to this post

KiddaMan

Awesome.. Thank You Sir !

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...