I'm new in Drupal 8, I have a list of articles. I want to show just the title of the latest article and hide it in the other articles. Is there a way to do that using the views?
Thanks.
if I'm not wrong you would be able to first sort articles by created time, to show you newest first, and then to limit filter to show only one.
Related
I am new to Drupal and ubercart, Actually making my first site on Drupal CMS.
I am developing online store with the help of ubercart. I am getting difficulties to display products in grid view for catalog.
As long as I understand correctly, we can create product categories from
Texonomy->add term
when I open url for example, http://[Website_URL]?q=[catalog_term_name]
I end up with the page where products are listed in list form not as Grid.
I am using drupal 7 and ubercarts's latest version[just downloaded two days ago], and as
long as I know ubercart supports grid view but how to display it.... I dont know.
Any help will be appreciated.
Thanks in advance.
Go to admin > structure > views ( For Drupal 7.x) and customize t he catalog view.
New to Drupal. Installed it, set Bartik theme as default, created a few pages with a menu. Now I would like to do something like this:
where the pictures with descriptions link to either other pages or articles. Each of them should have custom size.
What is the simplest way to do it?
For the testing I have created 4 articles on my home page, but obviously they sit one on top of each other. The same happens when I add blocks.
There is not better option to this than to install and use Views module. You can achieve exactly what you want using the nice UI it provides.
You need Views if
You like the default front page view, but you find you want to sort it differently.
You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically.
You use /tracker, but you want to restrict it to posts of a certain type.
You like the idea of the 'article' module, but it doesn't display articles the way you like.
You want a way to display a block with the 5 most recent posts of some particular type.
You want to provide 'unread forum posts'.
You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of "Month, YYYY (X)" where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month.
P.S - Views module is the most used and installed module in Drupal, hence, it will be a part of Drupal 8 core.
How can I create sticky news items? Our homepage features a news collection (news items housed in folder) with certain criteria selected (published, tags, published date; reverse order). The homepage news gets updated just about everyday; however on occasion there are 1 or 2 news items that need to stay at the top of the news list (collection) for an extended period of time. How can I do this?
I searched the Plone User Manual and Plone site; tried several collection configurations; looked at addons like ListingPages and Plumi but neither appear to have the feature I'm looking for, and have searched the web for "sticky content" "sticky news item" and have not found a solution. If anyone knows how to do this and wouldn't mind sharing, I really appreciate it! Thank you!
You could do it like this:
add a second collection in hp for featured news
add a news item with a tag "featured"
copy all criteria from the first collection to the new one and add a criterion on tag and select as tag "featured"
Then when you want a news item to be removed from the list, just remove the "featured" tag from it.
Alternatively you could customize your news item workflow and add a new state "featured" (the rest of the process is pretty the same).
collective.flag gives you the opportunity to mark an item as a special object, which makes semantically more sense than using a tag/keyword or workflow-state for distinction, I think.
Display and sorting can be done via collections (as Giaccomo also wrote), I recommend ContentWellPortlets to place portlets where you need them.
No release yet but I just came across davisagli's "collective.sticky": https://github.com/davisagli/collective.sticky/
I would suggest you to take a look at this old blog post: Beyond News Items: the need for news industry standards in Plone.
We've been working on collective.nitf, a new Dexterity-based content type to solve this kind of issues. It's pretty ready for production on sites using Plone 4.1 but right now we are in the middle of some minor refactoring.
I will release it next week as soon as we complete the move of some code to another package and change the name of a field.
afaik there is no way to create what you call sticky news in stock plone.
you could try soring by effective-date (newest on top) and set the effecitve date manually for your sticky news.
set a time <= now and > than the creation date of the newest newsitem that should not be sticky.
unfortunately this means touching your sticky notes each time you add a new news item.
or set the effective-date of your new newsitems so its before your sticky news and after the newest non-sticky news.
It's an ashamingly outdated method but hey It Still Works™: you could use Products.CMFPublicator to achieve what you want. Have a look at it and reply here if you have any doubts.
Another old-aged solution would be using Products.CMFContentPanels. You can even try a combination of both!
Another approach to sticky news item: http://pypi.python.org/pypi/collective.stickyitem
I have a little question. I am making a wordpress template that uses custom page templates. Now i ran into a problem. I want to create a page with a intro text and blog posts that come from a certain category. When a user creates a new page, I want them to be able to select the category from witch the posts are shown. Kinda like a drop down box with category's from where they can select the category they want. Does anyone maby knows a tutorial where I could learn how to do this ?
I mean something like this: http://imageshack.us/photo/my-images/10/naamloosea.jpg/
I already searched google but I could only find tutorials on how to make a template options page.
Thanks in advance,
Bob
You would want to create a Meta Box to save the category as a custom field entry within Pages. In here you could list the categories within a select box. You could then use this in the page template to pull in the posts from that category as you wish. I'll see if I can dig out a decent tutorial for this.
I did a quick search and found the following plugin for WordPress that may be of use... http://wordpress.org/extend/plugins/map-categories-to-pages/
So, Ive been making websites in Drupal for over 2 years now, but I'm profoundly stuck using Drupal Views module and paginating a page display. Basically I'm picking up a bunch of articles, sorting them by their date published and am limiting it to only 10 items per page, but I dont see a "More Link" and I have never tried to do paginating in Drupal. Any help would be great, thanks!
alt text http://img694.imageshack.us/img694/562/drupalpaginate1.png
You need to adjust the "use pager" setting. It is currently set to "no".