We are using Plone 4.1.3. We have a folder called News containing News items. In the folder, we have collection also called News. The default view of the News folder is set to the News collection. And in News collection, we set the default to Item: News and All Contents. The end result is we get a page showing the five most recent News items when we click on the News folder with page numbers below linking to older News items. The body of the News items is also displayed, but there is not line or border between each News items.
Question: How can we configure Plone or Collection or News Items to automatically insert a horizontal line between each News item body when they are displayed in the Collection view?
Thank you very much in anticipation.
cmgui
You can have this behaviour with a simple mix of maquillage and stylesheets :)
..You can custumize the appearance of your Plone site in 3 ways:
edit the main plone's stylesheet in a skin layer in the zmi (fastest and worst method)
create your own plone theme with a plone package (old fashioned but evergreen)
create your own plone theme with Diazo and its corresponding Plone integration plone.app.theming (latest trend and quite easy to start with if you are not yet a Plone developer)
Related
I’m fairly new to building customised templates in WordPress and would appreciate any suggestions.
In our WordPress website, we have a section ‘Members’ built using Custom Post Type UI & Advanced Custom Fields plugins, which renders similar to a listing. In the back-end the Marketing Coordinator goes to the Member section and ‘adds a new Member’ then entering the name, image and description. The member, when published, then appears on the members page Templated page.
The page is templated to Members, in the Members template a flexible layout is referenced, that is then referencing individual members.
Individual members > flexible layout > Member template.
I would like to copy this design for an awards section, so that it is easy for copy editors to input the copy.
The only problem is that the flexible and repeater fields are no longer used on the Advance Custom Fields.
So I need to find a solution to an already built section that I will be able to add and remove, plus custom sort, before updating the plugin and build another section in the same way.
It seems to now be available in the Pro version, which when reading the documentation for the free version states that flexible and repeater is deprecated! Not available in Pro!
How can I customize News Item content type to behave like a folder (accept files, folders as children)?
/portal_types/News%20Item/manage_propertiesForm
Changing Allowed content types seems to have no effect.
Try searching for collective.folderishtypes, that provides "Folderish News Item". Then look for 'folderish' at http://docs.plone.org for further reading. At this moment, using Dexterity to customize content types is better for future upgrades.
Is there anywhere online where one can find how to create custom blocks in the same way we can create custom content types in Wordpress. The desired result is to add a block that will allow the user to add/edit custom fields like client name, portfolio description, portfolio thumbnail.
I've created a free tool called "Designer Content" that lets you easily generate these custom blocks:
http://www.concrete5.org/marketplace/addons/designer-content
That being said, it is important to understand this key concept: In Concrete5, everything revolves around PAGES. In general, you want to try to establish an architecture where each piece of data is represented on its own page (a "details" page, which would roughly equate to a single blog post in Wordpress). Then you use the Page List block (usually creating a custom template for it to modify its look) to list out titles, links, and excerpts/photos from each of those "details" pages on a top-level "index" page (roughly equivalant to the home page or category archive in Wordpress).
For example, if you're building a portfolio site, you might want one top-level "Portfolio" page that shows a thumbnail and title of each piece, then a "Portfolio Item Detail" page type that contains one piece per page -- each living underneath the top-level "portfolio" index page.
The benefits of this approach are C5 gives you out-of-the-box tools to manage your "data" (pages) in this way -- users can add, edit, delete, and rearrange the pages via the "Sitemap" in the dashboard. Site search works without any modification -- each page (i.e. portfolio piece) will be its own search result with a link to a specific page. Also you then have more fine-grained control over access permissions if you ever decide to restrict access to only certain groups of people (registered users, etc.).
If you take this approach, you might find the "Page List Teasers" addon helpful (it will let the Page List block -- which you're using for your top-level "index" page -- to show actual content excepts from the pages instead of just a separate "description" field):
http://www.concrete5.org/marketplace/addons/page-list-teasers
Or if you want to dive deeper and customize the page list template even more, I have a starting template with a ton of code comments in it explaining how to do different things here:
https://github.com/jordanlev/c5_clean_block_templates/blob/master/page_list/view.php
But... if you're only talking about small amounts of information and you think a separate page for each one is overkill, then the Designer Content approach I linked to first will work just fine.
You can find a HOW-TO on creating new blocks written by Franz Maruna on the concrete5 website.
Here is the link: Creating a New Block Type
There is also a simple block you can download and install to help you follow the developer tutorials. You can find that here: Simple block template
How would I be able to use the Drupal Fivestar voting module for voting on photos in a gallery without each photo being a separate node. I've used the Fivestar module for voting on seperate nodes, but making each photo in a gallery a node doeasn't seem logical.
The way voting module works, I think they'd have to be a node and not items of a node, because thats how it tracks votes.
What is gallery? Views, custom node/module, Gallery2 module?
What module used for images? image/imagefield/upload?
This is example scheme for building gallery with Views and Imagefield (CCK) and Fivestar voting:
1. Create Image content type with imagefield.
2. Create Gallery content type with one main imagefield (that will be visible in gallery listing).
3. Add to Image nodereference field that linked with Gallery
4. Via Views show Gallery listing: main imagefield and title links should lead to other Views, that show sublisting of attached via nodereference Images.
5. Other Views page catch argument from step 4, and show Images where nodereference = linked gallery
6. Attach Fivestar to Image and Gallery content types, so you can vote for both types.
7. Voilà
p.s. For one main imagefield you can automatically get first image of subimages, or generate thumbnail image. Navigating menus in gallery or breadcrumbs you should set in header/footer of Views via drupal api.
You should probably consult the documentation for the drupal VotingAPI
http://groups.drupal.org/taxonomy/term/233
You can take Nikit's approach of rethinking what is really an image gallery. I am assuming you problem with separate nodes is not the quantity of nodes created, but the tedious process to upload a single image one by one.
Check out a module like Image Fupload which can handle the uploading of multiple images and the creation of nodes for each of those images. Plus if you use it through the image module it can handle tagging all those images to same taxonomy (which could be your gallery-name, instead of using a nodereference in Nikit example)
another last option, try to find some random javascript that can do the rating independent of drupal, yes you will not be able sort in Views by most voted, but if you simply just want a 5 star rating and nothing else thats an option. I am sure some googling will find a sufficient script to handle that on the side.
I am building a website www.etutornetwork.com, in top menu I have included a link to a new content type [services]. I want to add a link in dropdown menu as soon as I publish new content in services.
Please Help, Thanks in advance.
and one more question, I dont want to give any name to one of the menu in the site. I tried using or leaving it blank, but it does'nt like this.
You can attach it in node creation time (see Menu fieldset), or use module like Auto Menu. Some more details about this module (from its project page):
The Auto Menu module automatically generates menu entries on node creation/edition. Parent menu item can be specified on a per content type basis.
This module acts when the menu section of a node is left empty only. So, users can still organize menus manually. Moreover, default setting for content types is to not create menu items automatically.
I use Taxonomy Menu, to create my secondary menu. It is very flexible to use. Some more details about this module (from its project page):
Features
Custom Menu per vocabulary
Uses the default taxonomy term path or custom paths
Integrate with Views
Integrate with Pathauto: use URL/path aliases
Does not interfere with other menu modules
You can take away the permission from users dealing with menus. Then when you are publishing submitted content from them, you can assign them a menu entry and control the title.
Other than that, you could use Views (since Services is a content type) to create a block that lists all Services with links directly to the node.
Either way, someone will have to title the nodes/menu items. It's easier administrative wise to remove menu permissions from users submitting content.