close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Power CMS

Thread began 4/24/2015 1:48 pm by russb335115 | Last modified 4/27/2015 5:37 pm by Ray Borduin | 756 views | 6 replies |

russb335115

Power CMS

On my results page that I created with your tutorial for "Adding a new page in CMS" the results page isn't displaying breaks where there are paragraph tags. The paragraphs show up as one continuos line of copy. I've tries adjusting the CSS but with no luck. Is there something about this function that doesn't allow the <P> tags to be recognized?

Sign in to reply to this post

Ray BorduinWebAssist

The strange thing is that I don't see any paragraph tags in the code at all... but I do see the spacing because of the h2 tag. I also do see the paragraph tags functioning properly when I added them manually. Did you update this? I might need more information to properly understand the issue, because I'm either not seeing what you are, or don't understand what I'm looking at that is wrong.

Sign in to reply to this post

russb335115

I've included images to better explain the issue.

The first image shows how it looks on the website

The second show how it look in the CMS

And the third one shows how the code looks in the CMS. Notice that the <p> tags are there and it shows correctly on the details page.

Sign in to reply to this post

Ray BorduinWebAssist

I'm going to need FTP access to debug it. The issue isn't that the page isn't rendering the P tags, it is that the P tags appear to be removed entirely.

I'm not sure if it is an issue with the value in the database or when it is displayed on the page, but I'll have to debug to figure it out.

Sign in to reply to this post

russb335115

See PM

The files are in a folder called "news"

Sign in to reply to this post

Ray BorduinWebAssist

I see the problem. This is happening because you are using the optional length parameter in the call to get the cms. On your news-results.php page you are using:

php:
<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'News''Content'false$row_NewsRS['ContentPageSetOrder'], 200); ?>



This will only return the first 200 characters of that value... but it also automatically strips out any HTML such as <p> tags to prevent it from stopping the string in the middle of an open tag.

Your best bet is to probably remove the ",200" part from that reference and limit the size in another way (such as displaying in a div with a set height and scrolling or overflow:hidden). If you limit the string length by a set number of characters, you can't really include html tags that could mangle the page if interrupted unclosed.

Sign in to reply to this post

russb335115

Thanks Ray I did that and it fixed the issue.

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