Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Very nice theme.
Is there any way to make the pictures on the frontpage link to a gallery made in Views?
Hope someone can help me out.
Thank you very much.
Comment | File | Size | Author |
---|---|---|---|
#6 | define-custom-homePage.jpg | 93.3 KB | israelshmueli |
#4 | fontfolio_image_fields_with_taxonomy_links.txt | 12.46 KB | israelshmueli |
#2 | fontfolio-example-field-view_chang-image-ink.jpg | 166.29 KB | israelshmueli |
Comments
Comment #1
raslee CreditAttribution: raslee commentedHi there!
Been wondering about the same thing.
I made my gallery with views. Is there any way to make the pictures on the front page, be the first picture in one of my views galleries?
/raslee
Comment #2
israelshmueli CreditAttribution: israelshmueli commented@ChrisMatt :
The default Drupal front page is actually a list of teasers. By default any image field in teaser will link (or not) as configured in the its content type "Manage Display" tab in "teaser" mode. For content type "article" it will be /admin/structure/types/manage/article/display/teaser .
In the Demo website image fields in teaser (for article node type) configured as
If you need more specific link you can start by modifying the example view that shipped inside "examples" folder of FontFolio.
You will need to import the file content and modify the image field of "Attachment, Single Bigger..." display.
See Screenshot.
If you need different link for each image you can add link field to your content type.
And in your view you can link each image to the link inserted via the Link field.
To link an image field in view to a link field content you should
Please tell me if it solved your problem.
Comment #3
israelshmueli CreditAttribution: israelshmueli commentedHi raslee,
FrontPage view
Inner pages views
This should make the single promoted node displayed as first result of the view.
Comment #4
israelshmueli CreditAttribution: israelshmueli commentedHi raslee,
Attached to this comment new version of the example view: fontfolio_image_fields_with_taxonomy_links.
In this version every image linked to its node taxonomy name.
In order for the links to work you should creat alias for each term with its name in lower case and dashes replace spaces (e.g for "Vessel Sinks" create "vessel-sinks" alias).
Comment #5
raslee CreditAttribution: raslee commentedHey israelshmueli,
Thank you very much for your help.
I'm not sure what you mean by: "You will need to display the frontpage as modified version of the example view (exported txt file inside "examples folder" )."
/raslee
Comment #6
israelshmueli CreditAttribution: israelshmueli commentedIn "Site information" page you override default Drupal's frontpage with any page you want.
Just specify its path inside "Default front page" field.
"Site information" can be found at /admin/config/system/site-information
Inside the current version of fontfolio theme you can find example folder with exported view as text file named export-of-fontfolio-frontpage-fields-view.txt
Assume you enabled "views" module ,as well as "views ui" module, you will be able to import fontfolio's example view into your website. Just copy the content of export-of-fontfolio-frontpage-fields-view.txt file and paste in the proper field via /admin/structure/views/import .
So by
I meant that after importing the view you can modify its properties to your needs.
You can try importing both views: the example shipped with fontfolio as well as the view attached as text file to comment #4 .
Comment #7
ChrisMatt CreditAttribution: ChrisMatt commentedHey israelshmueli,
Thanks for your help.
Just to make sure we are talking about the same thing: What I want to do is not to display a view on the front page, but I want the pictures on the front page (as seen in your demo) to link to a view instead of a basic page. Is that possible?
The point is, I want the users to go directly to a view with alle my paintings just by cliking one of the pictures on the front page.
Thanks again.
/Chris
Comment #8
israelshmueli CreditAttribution: israelshmueli commentedReplacing the default teasers list with the same nodes represented by fields will allow you to tie custom link to the image and title fields and perform this task using Drupal's point and click admin interface of views and content type fields.
I am not aware to a point and click way to make each node teaser linked title to point to custom view URL instead its default "link to full version of itself".
In order to achieve this kind of customization without views you will have to edit the markup of the teaser title inside a template file (the generic node.tpl.php or node--your_custom_type.tpl.php).
Maybe...
I am not sure but..
If on frontpage each titled picture is "hand picked" painting that represents a category of paintings...
and you prefer to stay with this funcionality... When the user click the link and arrive the full node display.. What if here, in full node display she will meet the desired view ...
There is a "ViewField" field type. This field enable you to display view as node content.
Via content type "Manage Display" you can hide the representative image in Full node Display and hide the Viewfield in teasers display.
Or.. I am getting you wrong and not answering your needs and situation... If so, please supply more details and description.