The meta description that we get from a google search etc.
Do we set the meta information from cq side?
You usually set this in your base page template or which ever template your site is using to create pages.
You typically inherit from foundation/components/page and make suitable modifications to your page component(sling:resourceType of the template) depending on your requirement. You then override head.jsp to include your site specific meta tags.
Yes, we set all that information for each page in CQ page properties.
Go to siteadmin - http://localhost:4502/siteadmin
Navigate to the page on the left side of siteadmin so that you see the desired page on the right section of the page.
Right click on Page for which you want to set the meta information and then click on Properties.
In the dialog box that is opened, you can set all the meta information like Title, Keywords, Subtitle, Description in the first tab - Basic.
Save the dialog box by clicking on OK.
Related
I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!
In Drupal 7 I created a views page, and I want users to have the option to view the results either as a list, or with thumbnails (like on a lot of websites). The only way I can think of doing that is creating one page with the results as a list, and having a link to another page with the results that have thumbnails.
But my question is, how do I add just a random link to the top of my block page that will direct users to the 'thumbnail' page?
I tried to use 'unfiltered text' in the header and put the html for a link in there, and when I went to the page it looked like a link, but I couldn't click it. Any suggestions?
For every view you can create set of templates to style it. When you edit you view open "Advanced options" and then at bottom click on "Theming options" (or suggestions...can't remember real text).
That way you'll get a very useful popup which displays all templates used by view...in specific theme. So if you want to change some template just click on it's original name, pick up it's original code (copy) and create a file. Save it at your theme templates directory, pick some of suggested names, add your link or what ever html you need and clear the cache.
Templating is a bit broad subject to discuss in details for you questions's answer - find some tutorial on net, but general idea is to use custom view template and store your html there.
BTW, I hope you have only one view and different displays for you different pages.
i'm a completely new in Drupal. I'm building a website that in the home page has the typical 3 blocks on the button where you can click and go to some specific page or article.
I create that as Block and I even create that with Nodeblock, they are displayed in the right place and with the right text and images but what I can't make it work is make them be a big link, linked to their article or page, so when user will click it will be directly redirected to the main page.
Something like:
Block: discover
<div>Discover more about our last offer </div>
How can I do that?
I can't find anything close on the web...
Without seeing your site it's hard to say what the best course of action is, however I would suggest using the Views Module.
You could create a block with views and output any field as a link. In the Views UI you can set the url to link to any piece of content above it, using a token value. If you want to link to an item that is not visible, you can hide that field by selecting the "exclude from display" option in that field's settings.
You can also always use css to expand the size of the anchor tag to encompass the entire div.
Here is a tutorial:
https://www.youtube.com/watch?v=3L9JLZOb_LQ
in your block add
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.block-link').each(function(){
jQuery(this).parents('.block').slice('0,1').wrap('');
});
});
</script>
I have added an image upload field in the basic page content type that comes with the standard Drupal installation. If the user uploads an image, I want it to be automatically displayed at the top of the page as a banner. Problem is, the image just gets added below the main content of my page under the heading 'Page image: '
How am I able to change the page layout so that the image is displayed where ever I want?
If I am understanding you correctly there are a couple of ways to go about this. One, create your basic page content with your image and then create a view that references that image, or a bunch of images, like a slideshow, and places these images in the "banner," region of the page.
You will need to add a filter in your view to only accept the page content type.
Hope this helps.
First you have to hide image field from admin/structure/types/manage/page/display, which is content type's manage display page. You can do this by selecting "Hidden" option in FORMAT column for image field. This will hide your image field when you view your node.
To display image field in banner region you can create an block type view to display only image field of basic page content type and position this block to banner region. This will display all image in basic page contents. To display only current viewed content image you have to apply contextual filter with these steps:
In edit view page click on add button in contextual filter and select
Content: Nid option and click apply.
Then select "Provide default value" from "WHEN THE FILTER VALUE IS NOT
AVAILABLE" and in "TYPE" field select "Content ID from URL" option and
click on apply.
Now if you view your basic page content image will be shown in banner region instead of display with node content.
I have a like button on my main page (master page in asp.net).
I added a like button on each dynamic page.
When I try to enter the link:
http://www.friend.co.il/details.aspx?id=2321
to one of the dynamic page in face book developer page:
http://developers.facebook.com/docs/reference/plugins/like/
I get the same number of like as the total site number and not just a number for the specific page.
Any body know whats I'm doing wrong?
Using Facebook's URL Linter on your dynamic page's URL shows that it has Open Graph tags that refer to your website's main page. As a result, Facebook thinks that the canonical URL for http://www.friend.co.il/details.aspx?id=2321 is http://www.friend.co.il/.
You should either remove the meta tags from your subpages, or construct them so that they properly represent the content on each page.
Remove your og:url meta tag and also be sure to not include the Facebook javascript file multiple times like you are currently doing.