Search found 158 matches

by howey
Tue May 12, 2020 8:27 am
Forum: CMSMS Core
Topic: 2.2.14 news title problem - special characters
Replies: 10
Views: 3487

Re: 2.2.14 news title problem - special characters

Hi

Being a bit of a "Norman".

Added

Code: Select all

{$page_title = $entry->title|unescape:"htmlall" scope=global}
and the meta data renders OK
by howey
Mon May 11, 2020 10:19 am
Forum: CMSMS Core
Topic: 2.2.14 news title problem - special characters
Replies: 10
Views: 3487

Re: 2.2.14 news title problem - special characters

Hi I got the work around to get the page to display OK. However it now seems that the variable I pass to the page to create the meta data og:title now has the hex code no matter hoiw I configure the template. This is the code at the top of the template to set the variable {$canonical_url = $entry->c...
by howey
Mon May 11, 2020 9:45 am
Forum: CMSMS Core
Topic: 2.2.14 news title problem - special characters
Replies: 10
Views: 3487

Re: 2.2.14 news title problem - special characters

Hi I had the problem with non standard characters being displayed as hex code. My simple fix was to change the way the title code was rendered in the template. From this <a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a> to this ...
by howey
Tue Apr 28, 2020 12:39 pm
Forum: CMSMS Core
Topic: News showing template in url when using pretty urls
Replies: 7
Views: 2776

Re: News showing template in url when using pretty urls

Hi

I'll double check, but I did just put it in the "page" smarty logic first. When that didn't work I tried it in the template.

I will try again as the only thing I didn't do is clear the cache inbetween times.
by howey
Tue Apr 28, 2020 8:57 am
Forum: CMSMS Core
Topic: News showing template in url when using pretty urls
Replies: 7
Views: 2776

Re: News showing template in url when using pretty urls

Hi Operator error maybe? I tried adding the code to both the Smarty logic for the page and also directly within the template just below the process_pagedata. and removed the param from the News tag {cms_module_hint module=News detailtemplate=08_jobsdetail} It rendered the correct template, but I sti...
by howey
Mon Apr 27, 2020 10:36 am
Forum: CMSMS Core
Topic: News showing template in url when using pretty urls
Replies: 7
Views: 2776

Re: News showing template in url when using pretty urls

Hi I solved this the same way, set the detail template as default. It does mean however if I want to use other templates on another page I run into the same problem. I your post you said you used the url (slug). I had a problem with this, when a value is entered the detail template shows in the defa...
by howey
Wed Apr 22, 2020 9:05 am
Forum: CMSMS Core
Topic: News showing template in url when using pretty urls
Replies: 7
Views: 2776

News showing template in url when using pretty urls

Hi There was a previous post viewtopic.php?f=8&t=81636&p=344063&hilit=news+pretty+urls#p344063 That noted that they were getting a suffix to the url when using pretty urls with news stories. /news/68/98/my-article-is-cool/d,news-article.html I had the same until I made the detail templat...
by howey
Sun Mar 01, 2020 2:34 pm
Forum: Modules/Add-Ons
Topic: Leaflet JS Map
Replies: 9
Views: 2178

Re: Leaflet JS Map

Hi DIGI3 I have got the Leaflet JS working, passing the CGBlog information as a variable to the script. It still fails if I leave any line breaks in the CGBlog template. The working code is below: CGBlog template {foreach from=$items item=entry name=maps}{if $smarty.foreach.maps.last}L.marker([{$ent...
by howey
Sun Mar 01, 2020 10:49 am
Forum: Modules/Add-Ons
Topic: Leaflet JS Map
Replies: 9
Views: 2178

Re: Leaflet JS Map

Hi, I'm working on a local MAMP server at the moment. I can upload the latest rendition to my "working" version and give you access to that.

I'm just testing another way of adding the markers and then I'll upload.

Thanks
by howey
Sat Feb 29, 2020 4:57 pm
Forum: Modules/Add-Ons
Topic: Leaflet JS Map
Replies: 9
Views: 2178

Re: Leaflet JS Map

Hi Thanks for the help. The template code will be tidier. I set the variable again so it was visible in the same window when I was working on the code, so I could try different things. I tend to use a lot of generic content blocks in my pages as I can break down the code and I find it easier to trou...
by howey
Sat Feb 29, 2020 4:37 pm
Forum: Modules/Add-Ons
Topic: Leaflet JS Map
Replies: 9
Views: 2178

Re: Leaflet JS Map

Hi The Leaflet script I am using is {assign var="mapt" value=$maptest} {literal} <__script__> var cities = L.layerGroup(); var maptest = {/literal}'{$mapt}'{literal}; L.marker([55.8278, -4.0496]).bindPopup(maptest).addTo(cities); var mbAttr = 'Map data &copy; <a href="https://www....
by howey
Sat Feb 29, 2020 3:42 pm
Forum: Modules/Add-Ons
Topic: Leaflet JS Map
Replies: 9
Views: 2178

Leaflet JS Map

Hi I looked in the forum and found a topic on this, but the topic was over 6 months old and shown as locked. I have included an OpenStreet map in a website and looked at using Leaflet JS to add the locations etc. As there are over 25 locations and some may need to be added etc I though I would be ab...
by howey
Tue Dec 31, 2019 2:46 pm
Forum: Modules/Add-Ons
Topic: CGBlog admin - not under content
Replies: 2
Views: 1046

Re: CGBlog admin - not under content [solved]

Hi

Thanks DIGI3, I wouldn't have found that by myself. But it's prompted me to think that I should read through the other help items on the CGExtensions.

Thanks again
by howey
Sun Dec 29, 2019 5:38 pm
Forum: Modules/Add-Ons
Topic: CGBlog admin - not under content
Replies: 2
Views: 1046

CGBlog admin - not under content

Hi It's a while since I used CGBlog. I have just installed the module and the associated extensions etc. My query is, I'm sure that the module used to appear in the Content menu of the admin page, it now appears in the extensions? Is this a modification, or have I missed something on the optins/inst...
by howey
Fri Mar 22, 2019 2:58 pm
Forum: Modules/Add-Ons
Topic: CGCalendar events not showing on website
Replies: 3
Views: 1411

Re: CGCalendar events not showing on website

Hi I've got the CGCalendar working. I'm trying to work out where I went wrong, but to solve it I did the following: Made a separate installation of 2.2.9.1 Installed CGCalendar etc Tested – worked OK Went back to dev site, over written the page template by cut n pasting the page template from the 2....

Go to advanced search