Link to Article Section in Carousel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2011 02:09 PM
Hello,
This is my first post here but I've been grabbing some useful information for the past month. I am new to Web Quick Start but am moving along in my understanding thanks to hands-on work and awesome resources such as these forums. I have been looking for a way to have the "read more" link in the carousel to direct to the section the article is an asset within, not the actual article itself. For example, /govtworks/news/green_init/ instead of /govtworks/news/green_init/slide1.html . Using section.name and section.title displays the root page values. Any help would be appreciated.
Thanks!
Bob
This is my first post here but I've been grabbing some useful information for the past month. I am new to Web Quick Start but am moving along in my understanding thanks to hands-on work and awesome resources such as these forums. I have been looking for a way to have the "read more" link in the carousel to direct to the section the article is an asset within, not the actual article itself. For example, /govtworks/news/green_init/ instead of /govtworks/news/green_init/slide1.html . Using section.name and section.title displays the root page values. Any help would be appreciated.
Thanks!
Bob
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2011 09:45 AM
Hi Bob, welcome!
Try:
That will provide the section of the article.
Regards, Ben.
Try:
<a href="<@makeurl section=article.containingSection/>">${msg('read.more')}</a>
That will provide the section of the article.
Regards, Ben.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2011 05:59 PM
Thanks, Ben! Worked like a charm. I do have another unrelated question:
I would like to put a picture on a page and have it render the same way as when an image associated with an article is clicked (in the nice little js box). However, I don't want the text around the image to be formatted like an article IE I'd like to place a sentence directly under the image as a caption.
Any input?
Thanks,
I would like to put a picture on a page and have it render the same way as when an image associated with an article is clicked (in the nice little js box). However, I don't want the text around the image to be formatted like an article IE I'd like to place a sentence directly under the image as a caption.
Any input?
Thanks,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2011 03:33 AM
Hi Bob,
The JS effect you describe is known as a "lightbox" effect. The one used on the sample site is driven by a jQuery plugin called SlimBox. You can read all about it http://www.digitalia.be/software/slimbox2. Fyi, all of the jQuery plugins are listed within the license file (Web-Quick-Start-License.txt) located under \wcmqs\META-INF.
These types of features are very much in the web tier and actually have nothing to do with Alfresco (with the exception of delivering the image). It will require a little JS and CSS work. To help you get up to speed, you may also want to take a look at the original template to see how the CSS and JS is used. It is available here - http://themeforest.net/item/media-consult-business-portfolio-and-blog-theme/63330
Regards, Ben.
The JS effect you describe is known as a "lightbox" effect. The one used on the sample site is driven by a jQuery plugin called SlimBox. You can read all about it http://www.digitalia.be/software/slimbox2. Fyi, all of the jQuery plugins are listed within the license file (Web-Quick-Start-License.txt) located under \wcmqs\META-INF.
These types of features are very much in the web tier and actually have nothing to do with Alfresco (with the exception of delivering the image). It will require a little JS and CSS work. To help you get up to speed, you may also want to take a look at the original template to see how the CSS and JS is used. It is available here - http://themeforest.net/item/media-consult-business-portfolio-and-blog-theme/63330
Regards, Ben.
![bremmington bremmington](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2011 03:46 AM
Just to add to what Ben has said, an image is a content asset so can have properties too. You may want to use the images "title" property as the caption you mention. In the "article/style1" component, that would be obtained simply with "image.title"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2011 10:17 AM
Thanks, gentlemen. I'll have a look!
![](/skins/images/A90266AC6EB1934BC937DAFB2842964E/responsive_peak/images/icon_anonymous_message.png)