Plone link type - open external site - plone

I have added a link to my left nav menu, which points to an external link. When I click the link it displays a view saying "The link address is: http://externalsite.com"
How do I get the link to open directly, rather than displaying this message/view?
My version info is:
Plone 2.5.4-2
Zope (Zope 2.9.8-final, python 2.4.3, linux2)
I have tried editing the link type in portal_types in the ZMI, but there is no option there to "Redirect immediately to link target" as suggested by this answer - How can I add a menu entry that links to an external site?

I found the answer here - http://plone.org/documentation/kb/repurpose-link-object
It turns out the link is behaving as expected, but displays that view to the author so that the link can be edited. It redirects for users.
If you create a link, people will get sent directly to its target when
clicked. If you are the Owner of the item, you will be sent to the
view page so you can edit it, though.

Bounce from a page template using meta refresh redirect?

Related

Wordpress: linking page to menu item doesn't work

I am new to WordPress and followed instructions to link a page to a menu item but it's not working. I go to Dashboard>Appearance>Menus. I check the About page on the left and click Add to Menu. It shows up on the right. I click Save Menu.
I go to the main site (www.tekknow.net), click on the About menu item, and it says "This page isn't working". Suggestions?
EDIT: The field values in Settings > General are
Wordpress Address (URL): http://tekknow.net
Site Address (URL): http://tekknow.net
The permalink setting is now set to Post Name and the About menu item now shows tekknow.net/about in the URL but still getting error. This time error is "This page isn't working - ERR_TOO_MANY_REDIRECTS". I googled that error and found this informative page: https://kinsta.com/blog/err_too_many_redirects/ but nothing I tried would fix it.
I've cleared the cookies, deactivated all plugins, can see no redirect to HTTP or https in the .htaccess file, resaved the permalinks, yet the error persists.
Please help!
I contacted my HostGator support and they solved the problem. Had to delete the About page, recreate it, re-add it to the menu. Then it worked! Something about the original About page that came with the twentyseventeen theme that it didn't like. Horrible first experience with WordPress.

Drupal: Error Message when add new page

I have new Drupal. I am not sure about Drupal work with add page, article or blog.
This error shows when I add new page click on "preview" button then click "save" button or click on delete link.
Here error message
"The content on this page has either been modified by another user, or
you have already submitted modifications using this form. As a result,
your changes cannot be saved."
Why Drupal not allow Save content after I preview?
Please kindly help with this problem.
Thanks
This message is caused when either (1) two users access the edit page and one user saves changes before the other user gets a chance or (2) when a user edits content, saves it, and clicks the back button to get back to the edit page.
Solution: From Home » Administration » Configuration » Development click on Clear all caches button.

Undefined URL with WordPress Custom Post Type permalinks

I'm having a very strange issue with the permalinks for a custom post type.
I'm displaying a list of all the posts within the "accommodations" custom post type that I've created on a custom page template. The URL for this page is /accommodations/
Part of this list includes the permalink for each post that links to /accommodation/gold-bottom-cabins/ for example. This links to the single post that uses a template called single-attraction.php
When I hover over the link I can see that it is linking to the correct URL (/accommodation/gold-bottom-cabins/) however when I click the link it goes to /accommodations/undefined
The strange thing is is that if I right-click and open the link in a new tab, it links to the proper URL and works fine.
Any ideas?
I've tried re-creating the .htaccess file by re-saving my permalinks with no luck.
I suspect you have some sort of JavaScript / jQuery plugin attempting to bind to the click event of your link for a couple of reasons...
1) Single click (left click) behaves differently than right click -> new tab. (And I suspect if you copy/paste the URL into a new tab it'll work fine).
2) The word undefined shows up in JavaScript when you attempt to use a variable or call a function that is undefined.
I would inspect the console and see what errors might be reported.
If you don't have any errors in the console I would inspect the links themselves and look for any classes or wrappers that would indicate a plugin might be trying to target them.

How to add a link to an anchor in Drupal 7?

I'm creating a website with Drupal 7.
I've a contact block at the bottom of the page (as a footer page), but I need to put a link into a menú with an anchor. I mean, when an user press that link, it must scroll down the page to the contact block.
How could I do this? I don't see anything.
Thank's
The module Menu attributes is your life saver, install it, so you can add the name attribute to your link
I believe you need to use the Menu token module in order to get the path to the current page for the anchor link. Path for the menu item should be something like:
[current-page:url:path]#footer
Its simple! You just create a link and go to page content edit option through Drupal admin. In the bottom of edit content page you will get a URL path settings, there is url alias field on there. You just put path in your field.

Plone: How to hide some tabs at the top of Plone portal

We are using Plone 4.1.3 and because of a bug in the Contents page of a folder, and we want to make a folder not to appear as a tab at the top of the Plone portal. Also, we want to do this without disabling Automatically generate tabs in Site Setup's Navigation settings. We found this documentation here: http://plone.org/documentation/kb/changing-tabs, and tried to follow the instructions but in our ZMI's portal_actions tool page, we do not see the items (that are supposedly the tabs?) as mentioned in the documentation. Instead we see these under Name Type in portal_actions:document_actions, site_actions, folder_buttons, object, object_buttons, portal_tabs, user. And in portal_tabs, there is only one name type: index_html (Home) where Home is our root folder.
Can somebody advise us on how to manage the tabs at the top of the Plone page - i.e. how to hide some tabs (i.e. make some items not appear as tabs)?
Thank you very much in anticipation.
cmgui
Found the answer. In the Edit page of the folder, click on the item and then click on Edit of the item. In the Edit page of the item, click Settings and select Exclude from navigation.

Resources