On the homepage of the website, there is one "News" portlet on the left side. I want to change the title of this portlet to "News and Events". Because when I click on Manage Portlets >> News there is no where to edit the name of this portlet. Is doing this possible?
The News Portlet has a static "translated" title. It also shows only NewsItems.
You can configure the workflow state and the number of NewsItems.
Workaround:
You can create and configure (Type: NewsItem / Sort on: Effective date) a Collection.
Then add a collection portlet.
Set the Portlet header to "News and Events" and use the collection you created as "Target collection". Also enable "Show dates".
You can go to ZMI -> portal_view_customization -> news.pt (this is the template for the news portlet) -> customize and change the title, removing the i18n tag for translation and rolling your own translation.
Related
We want to customize the Plone site homepage, making it Google style looking, for its major usage is to search contents. The nearest base is the result of /##search browser view. Is there any quick and recommended way to realize such customization?
Add search to available view methods in the ZMI -> portal_types -> Plone Site:
Select the search view from the display menu:
Enjoy search view
Bonus points for exporting the customization to a file system add-on via ZMI -> portal_setup
That's how you can set the ##search view as default view on your plone site root:
Go to http://your.domain/site/manage_propertiesForm
If there is a layout property, set as value ##search
If there is no layout property, create a new one with this name, the type string and use the value ##search
You can then style the search form with CSS to your needs.
You can make the customizations more specific by using the CSS-selector .template-search.portaltype-plone-site #searchform.
Ok I'll try to explain a little better.
I have created a view to display 3 items of a certain content type on homepage.
When I click each piece of content it takes me to actual content eg node22.
I need to be able to change this so when content on homepage is clicked it goes to a specific url alias I have already setup eg contact us page.
Any idea what I need to achieve this??
We really need more info on your view to answer this but here are some thoughts.
If your display type is content the title automatically links to the node page so I will assume this is not what your issue is.
If you are using fields view just select the checkbox that says: "Link this field to the original piece of content". It is available in most "node" fields such as nid and title.
From above your example is how to "link node 49 to education page" You may be just needing the path module for that. Enable the core path module and then visit the node page you want to set a custom url for. Their should be a tab called "URL Path Settings" at the bottom of the page. Spice those up a bit more by downloading and installing the path auto module and the node url wil automatically be set when you create it.
I have enabled the Scheduler in my Drupal website and then I created a content type named as VAT. I have enabled the scheduler option in this content so when I add content of type "VAT", there are two text fields; publish date and unpublish date.
Now I want to create a view in which I want to display content from "VAT" and these content should be displayed according to their publish and unpublish date.
How can I do this?
Create a view as you normally would. When it comes to filter out only posts that are scheduled, add the filter called "Scheduled: publish on" and in its settings, change the Operator to "Is not empty (NOT NULL)". That will only show posts that have a scheduled publish time. If under "Basic settings" you choose "Fields" as the row type, you can show the scheduled publish/unpublish dates.
It may be good to create a separate view for scheduled unpublished dates, if you use that field.
Add other filters as appropriate, such as content type, but don't include a filter for Published = Yes. Otherwise unpublished but scheduled to publish posts won't show up. Also be sure to add some access control under "Basic settings", so that instead of "Unrestricted", only privileged users can see the list of posts to be scheduled for publication/unpublication.
I really like the promote to home page feature of drupal. But what if I want some content promoted to a page other than the home page. Is that possible?
The "promote to front page" is a helper that puts the page in the /node URL. If your front page is not /node, the "promote to front page" won't really do what you expect.
If you want a list of nodes, then views will do the trick. However, if what you want is to put a node in a page that is another node as if it was a block, then I suggest you look at the "node as block" module.
From the module description:
This module allows those with the appropriate permissions the right to create blocks for each node. By default these blocks display the node title as the block title and the node teaser as the body.
I would suggest using Views for this purpose. For instance, create a taxonomy vocabulary with terms corresponding to the various pages you might want content to be promoted to. Then create or edit that content and tag it accordingly. In Views, use the taxonomy filter to display only the matching content.
As often, there are many ways to do that. The Flag module is a good way to put all kinds of markers on nodes. Another option is the Nodequeue module. This module allows the content creator to group nodes in 'queues' and control the order.
If you need more details, let me know.
EDIT: Changed title for clarity purposes.
If you use Drupal 6 you have access to the menu_alter and menu_link_alter hooks.
if you can't make the needed changes via the regular administration options you could create a module which implements one or both of these hooks so that you can change the generated menu items when the menu_router table contents are built.
http://drupalmodules.com/module/string-overrides
Drupal provides Translations at their website...
http://drupal.org/project/Translations
Generally, this functionality would implemented via the locale module, which is part of Drupal core. The module is very easy to use for a situation like this. Simply enable it, then go to the settings page; add a "language" (just a custom set of translation strings for your site) and then enter the string you want to translate and the translation.
If you're running Drupal 5, you might also want to check out the localizer module for additional options.
You could just create an alias for it. For instance make one for "forums" to point to alias "forum."
If you're simply looking to change the title of say, the 'My account' page or 'Create content' page, or any other default Drupal page, for that matter, you can modify the menu items themselves by heading to 'domain.com/admin/build/menu/list'.
For example, if you wanted to change the title of 'My account' to 'Your account', you would find the menu titled 'Navigation' within the menu listing page at '/admin/build/menu/list'. The 'Navigation' menu is located at '/admin/build/menu-customize/navigation'. Find the menu item 'My account', and click 'Edit'. From there, you can modify the title of the menu item.