close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using PowerCMS as a blog and adding a content area called Featured Image

Thread began 3/09/2018 1:44 pm by sandy170299 | Last modified 3/10/2018 3:06 pm by Ray Borduin | 580 views | 3 replies |

sandy170299

Using PowerCMS as a blog and adding a content area called Featured Image

I'm creating a blog using PowerCMS as the back-end CMS, and I created a content area called Featured Image. I've added this field to the blog results page, by copying and pasting the developer notes to the results page, but the image sizes are all over the place. I want to display this "featured image" on the blog results page, and have it display images in a specific size.

How can I specify a fixed image size with this code/framework?

<?php
include('/file_path/public_html/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'BlogPosts', 'Featured-Image', false, $row_BlogRS['ContentPageSetOrder']);
?>

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

I'd maybe wrap it in a div with an id and then you can target and resize it with CSS.

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

So, there's probably no way to do it with an <img src.... tag, and specify size that way? That's okay - I've actually been able to get it to work using your <div> suggestion. It's in test mode, but I think it will work.

http://theartofsergio.com/blog-results.php

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

There are other ways to get it done, but this way is the easiest if it works for you.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...