Page 1 of 1

news module: links in summary template?

Posted: Tue Mar 31, 2015 6:10 pm
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?

Re: news module: links in summary template?

Posted: Tue Mar 31, 2015 6:47 pm
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

Re: news module: links in summary template?

Posted: Fri Apr 03, 2015 9:38 am
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.

Re: news module: links in summary template?

Posted: Fri Apr 03, 2015 12:01 pm
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...

Re: news module: links in summary template?

Posted: Thu Apr 09, 2015 6:15 pm
by Dr.CSS
Sounds like that |html_entity_decode:$smarty.const.ENT_QUOTES thingy...

Re: news module: links in summary template?

Posted: Fri Apr 10, 2015 12:19 pm
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

Re: news module: links in summary template?

Posted: Mon Apr 27, 2015 10:01 pm
by Dr.CSS
There was a problem with HTML entities that was fixed in CMSMS 1.12...

Re: news module: links in summary template?

Posted: Tue Apr 28, 2015 11:37 am
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)