Read More/Less

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Read More/Less

Post by webguru »

I want the ability to READ MORE/LESS on an article just like on the CMSMS home page and frankly, I'm very confused on how to go about it.

If I understand, I am to make a news article and somehow reference that in my page. But I'm not sure what terminology to use or what tag.

I created an article called: Sample Itineraries. How do I reference that in my article in a "read more" link?

Thanks!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Read More/Less

Post by Dr.CSS »

A 'read more/less', of which there are none on the cmsmadesimple home page, are different than a 'read more' link which in CMSMS are generated in the News module by default, if you have 'summary' in use, are also used in a couple of other modules such as CGBlog...

So depending on what you actually want will depend on how you go about getting them...

Here is an example of Read More/Less...
http://how-i-did-that.com/cgblog/5/15/S ... lapse.html
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Read More/Less

Post by webguru »

You are correct. My mistake in wording. I have a Dreamweaver Extension that shows more/less and that was in my brain when I was writing.

I am trying to get the "More", like on the home page to work and I am having difficulty with how to enter it in my page. How do I link the NEWS to a part of the page?

As for the link you posted, it is perfect as well, but I can't get the "read more" in the hyperlink to stay when I paste it in the code view of my page. It keeps pushing it outside the </a> tag.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Read More/Less

Post by webguru »

I am having an issue with a Dreamweaver extension that I am using. The slideshow and a slideout menu that I'm using from the same company are working perfectly. Here's my issue:

The extension is a "Read More/Less" extension from: http://projectseven.com/

I have the links to the CSS and Main Javascript properly in the header of the template. For each "read more", it requires the following code to be at the end of it: <__script__ type="text/javascript">P7_SMLop('p7SML_1',1,600,'Show More...','...Show Less',50,1)</__script>

The problem is when I paste the code into the source code of the "content" block on the page, it is not showing the <__script__...

How do I tag the script or the content block so that it allows what I paste?

Thanks!
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Read More/Less

Post by Jeff »

I know you are going to hate me for saying it, but you really need to learn how to use js without the crutch of Dreamweaver.

I don't understand what you are wanting to do, but it should be simple to without a Dreamweaver extension.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Read More/Less

Post by webguru »

I would be happy to find a CMSMS extension that allows me to show "more/less" of content, but I can't find one.

If someone knows of one, I'm very open to it.

But, I am not using Dreamweaver to write the JS. I used it for the layout and copy/pasted my templates into CMSMS and it worked beautifully.

This particular extension requires the JS after each entry.

Don't hate you. :)
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Read More/Less

Post by Jeff »

You need to explain what you are trying to do better.

Are you using modules or the content page? what templates are you using?

Explain what you are trying to do with extra detail. If possible have visual mockups.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Read More/Less

Post by webguru »

Ok...

http://www.projectseven.com has a tool called "See More or Less". You can see it here: http://projectseven.com/products/tools/sml/index.htm I have used it successfully on many Non-CMS sites. In fact, I am using one of their Off-canvas menu extensions successfully on 2 CMSMS sites I am working on.

The CSS and link to the JS file are in the head of my template. The usage requires that I add a snippet of code for each instance I want to use on a page. The code has to include this JS: <__script__ type="text/javascript">P7_SMLop('p7SML_1',1,600,'Show More...','...Show Less',50,1)</__script> at the end of the instance.

So what I do is, create the page in Dreamweaver. I then copy the code for the part that would go into the content in CMSMS, it includes the JS above...but pasting that in the "source code" view of the content manager area doesn't retain the JS once I click on save.

Here is a test page on the site that includes what it looks like. The only way I can get it to work is if I create a Template and have all the content code put in the template: http://web64006.aiso.net/index.php?page=test This seems a bit counter-productive, because when I hand off the site to the client, I want them to be able to use this type of functionality wherever the want on any new pages they might create.

The Module that Dr.CSS recommended is perfect, but nothing I do makes it work.

So my questions are:

1. Is there a specific "tag" to wrap the JS with so that it is retained?
2. Does anyone know of a module made for CMSMS that will do this?

I've gone through the Modules/Downloads pages, but they are confusing since they are not sorted by category as much as just alphabetical.

The client has a lot of pages that link to certain additional content pages and I am trying to alleviate the constant clicking to go to another page, then having to come back.

Hope this was explained in more detail.

Thanks for your help!
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Read More/Less

Post by Jeff »

I didn't understand a bit of that. I don't know that extension and I don't want to, so explain what you want in terms of something I don't know is useless and make me disinterested in helping.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Read More/Less

Post by webguru »

Well, I guess I will wait for someone else to help out.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Read More/Less

Post by paulbaker »

webguru wrote:but pasting that in the "source code" view of the content manager area doesn't retain the JS once I click on save.
One solution to this is modifying your template so that all the JS stuff is separate from your actual written content. Remember you can have multiple content blocks.
webguru wrote:The Module that Dr.CSS recommended is perfect, but nothing I do makes it work.
That looks like a simpler solution, what goes wrong? Error messages? Explain what you do to try to implement that one.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Post Reply

Return to “The Lounge”