|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Design Customization Flaw with brief version Site News (open tags creates issues) |
Flaw with brief version Site News |
When you limit the number of characters in the brief version of site news entries...there are many tags that are left open...which create issues...
i.e. non closed Paypal form tag creates issue with all the other form...hence if you search it takes you to the Paypal page Please suggest a fix |
This still doesn't work for us. There is an if/then branch statement surrounding the text, and it is not getting completed.
Please advise as this looks terrible on our screen ... Attachments:
7008661.jpg
(145.6 Kb)
·
1017304.jpg
(150.7 Kb)
|
I am not using HTML in my entries. I am just typing in plain text.
The News entry panel is inserting the HTML tags, and the page renderer is probably inserting the if/then branching tags. To my knowledge I have no control over this from the UI. Fyi: * All I have in my News page is a reference to $LAST_NEWS$ ... that macro evidently calls an underlying module to render the entire news page. * In the "Appearance of Entries" design template, this statement is the one generating HTML output that is getting truncated: JK1<!--?if($MESSAGE$)?--><div class="eMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$ </div><!--?endif?--> JK2 As you can see I placed literal text at the beginning and end of this if/then conditional branching block. From what I can tell the $MESSAGE$ is being expanded first, then 1000 char truncation per "brief mode" display, thereby losing the closure of the branching block. And here is how it looks when rendered ... I could remove the branching logic from this statement, as I assume you wouldn't have a new post without a message (or maybe you would) but I assume it was put there for a reason. I hope I've clarified the situation better. Is this a bug in the News module? Or did my template get modified somehow due to a change in setting through the UI? (which would still be a bug). And, what's the best way to handle this? Thanks. John Added (2015-04-20, 10:25 PM) Attachments:
9990963.jpg
(341.5 Kb)
Post edited by Boujohn - Monday, 2015-04-20, 3:50 PM
|
Boujohn, if you used the Visual Editor at some point on your main website, then yes, that's the most probable reason of the differences in the code. Usually we do not recommend to use the Visual Editor for design customization because it may result in messed up HTML code.
I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||