news module: links in summary template?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
basvcds
New Member
New Member
Posts: 5
Joined: Sat Jan 08, 2011 10:20 am

news module: links in summary template?

Post by basvcds »

Hi Everyone,

I use my news module mainly without a summary so the news just directly shows on my homepage. However when i do this, any links i created are not being parsed by the module. What can i do to include (external) links in the summary template?
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: news module: links in summary template?

Post by Jos »

basvcds wrote:What can i do to include (external) links in the summary template?
Select the text that needs to be a link, then hit the "chain"-button in the wysiwyg editor
basvcds
New Member
New Member
Posts: 5
Joined: Sat Jan 08, 2011 10:20 am

Re: news module: links in summary template?

Post by basvcds »

Hi, i did make the links in tinymce, and they do show up in editor. However, on the front end the links stay text-only. I write most articles without filling in the summary, so the entire text appears in the summary template on the homepage. Whenever i make a news article that uses both the summary and content field, links do show up in the specific news-page, but never the summary.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: news module: links in summary template?

Post by Jo Morg »

basvcds wrote:However when i do this, any links i created are not being parsed by the module.
I don't use tinymce, but in a vanilla install with microtiny, everything works as expected. I tested in CMSMS 1.11.13. So this is not a news module issue. However you should post your system info, otherwise there is not much more we can do in terms of help...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: news module: links in summary template?

Post by Dr.CSS »

Sounds like that |html_entity_decode:$smarty.const.ENT_QUOTES thingy...
basvcds
New Member
New Member
Posts: 5
Joined: Sat Jan 08, 2011 10:20 am

Re: news module: links in summary template?

Post by basvcds »

Could you elaborate on that Dr. CSS? I just checked with a few other CMSMS installs i have running, they all seem to behave alike. Using TinyMCE or MicroTiny makes no difference, both work and can add links to the content.

My info:

Cms Version: 1.11.12

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.8
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
TemplateExternalizer: 2.1.6
MleCMS: 1.11.4
CGExtensions: 1.39
TinyMCE: 2.9.12
Gallery: 2.0.1
SEOTools2: 1.2.1

Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.3.28
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: news module: links in summary template?

Post by Dr.CSS »

There was a problem with HTML entities that was fixed in CMSMS 1.12...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: news module: links in summary template?

Post by velden »

Well, I'd suggest to have a look at the both the specific summary template and the detail template.

Code: Select all

<div class="NewsSummaryContent">
  {$entry->content}
</div>
Maybe there's used something to strip tags from the content in the summary template? (or |cms_escape)
Post Reply

Return to “Modules/Add-Ons”