GDay,
I need to add a script on the home page only. The only method I found was with the pages PID, which I dont know..
Whats the best practice to include a script only on the start page?
If I need the PID, how do I find it?
Kind regards, a typo3 noob.
In the backend hover the start page on the PageTree with mouse pointer so it will show you the UID of page (ie. id=1)
Then use a condition in your TypoScript template
[globalVar = TSFE:id = 1]
// include script on page with UID 1 only
[end]
Related
What's the best way to add a "logout" button in the menu. I am using the extensions "fe_users" and "femanager". I found a few solutions on the web but none do work.
Any link containing the GET-Parameter ?logintype=logout will cause the system to process a logout. You can either add a link with this parameter to a HMENU / TMENU or create a page of type external link in the backend and add the parameter to a link to your page and only show this page in menues when logged in.
I am trying to do the following:
I already have a menu with several drop downs in wicket right now. However the number of entries have become very large in the drop downs, one has to remember headers under which a particular page exists. I would like to create a landing page, which would have a search bar in which we can type in the page name and I should be redirected to the desired page.
Can anybody give me any pointers of how to proceed with this one? Thanks!
You can consider to use AutoCompleteTextField to show user the available pages. Then, after user has selected a page, you can redirect him/her to the page.
I have converted a joomla website to wordpress. All categories and joomla articles are converted as wordpress categories and blog post. Now I want to show this posts (articles) with different menus. But I saw I can assign catagories in word press menu. But How can I display a single post with a menu ?
Like I have about us post , for which I want to create a menu. How can I do that ? I can convert those to pages. But I dont want to loose tags and URLs . Can anyone help please ?
Thanks
You can add any post to a menu from the "posts" box in the menu admin screen. If you don't see that box, go to the screen options for the menu screen and check "posts".
There is an option named Custom Links in wordpress menu configuration. Just name label as "About Us", and give your post link in url field.
create separate page template for every single menu. In these page templates write a php code to fetch content from single category. Create pages in admin and assign a page template to each page into admin. This will fetch content from different category on different menu that u want.
I have a page of products on my website with a share button on each, now how can I tell facebook to automatically select the title and image of the product shared rather than the whole page.
A link to my site
The site is written using php on smarty type script with tpl files,
ps i dont really know php very well.
Thanks in advance :)
A server side scripting language would be the easiest:
in php you could share the page + an extra variable , then if your page detects this variable you can set specific meta data.
http://www.fancydressclothing.net/categories/49/1950s-Costumes.php?product=1
And in php fetch the correct data for product 1 and set the meta data:
http://developers.facebook.com/docs/opengraph/
You should use a canonical URL for each product which will help in two ways. One with the facebook linter getting the correct og tags. And two, helping your SEO rankings too.
I have some restricted pages built in Typo3. The problem is I cannot automatically redirect user from these pages to login page. How do I do that? I desperately need it and cannot find a solution despite of the fact I have spent most of the day working on it :(
Any help will be much appreciated.
That should work fine:
# Restricted area starts at pid 123.
# Check if user is logged in:
[PIDinRootline = 123] && [usergroup = *]
# do something
[else]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]
Found here
Just for reasons of documentation: make sure you choose the right redirect mode.
If I wish to redirect for a certain page after login, but only one specific user group should redirect to another page, then I choose two items for redirect and bring them to the right order. I choose them under page > Plugin > Redirect.
The order should be the way that the specific conditions are caught first.
This screenshot illustrates it:
This was tested for Typo3 6.1.3.
Hope that helps sb...