View Full Version : Need Help to create my Portal page on vB CMS
Reef Man
06-20-2013, 03:34 PM
Hi,
I need some help.
I want to configure my Portal page of my vB CMS.
I already created diferent section without categories on my CMS.
Let me explain.
Sections:
-Tank of the month
-Photo of the month
-Meetings
-etc.....
In my portal page, I just want to show the most recent article of every section.
Is this possible? How can I do it?
Thanks !
Lynne
06-20-2013, 03:39 PM
It isn't possible with a default widget or in the Section "Content From" dropdown. I think you would need to create a PHP article and do a query to get the most recent article of every section and then list them in that PHP article. Make sure that article is set to show as the full article on the section and then only show that article in the section view.
Reef Man
06-20-2013, 03:46 PM
I am not a programmer. Can you give me a hand Lynne?
On the other hand, is it possible to promote a blog entry as article on the CMS?
Lynne
06-20-2013, 03:57 PM
If the user has the permission to do so, there should be a Promote to Article link on the Blog entries.
As for the php article, I can give you my quick query that simply lists all the articles in one particle section. You can modify it to do what you want:
$myquery2 =vB::$vbulletin->db->query_read_slave($myquery = "SELECT cms_nodeinfo.title AS title FROM cms_nodeinfo RIGHT JOIN cms_node ON (cms_node.nodeid=cms_nodeinfo.nodeid) WHERE cms_node.parentnode = 2 AND cms_node.contenttypeid = 18");
while ($myarts = vB::$vbulletin->db->fetch_array($myquery2))
{
$output .= $myarts['title']."<br />";
}
So, change parentnode to a different value for each section. (Also, verify that the contenttypeid for Articles should be 18 for your site.) That should at least get you started.
Reef Man
06-20-2013, 09:08 PM
If the user has the permission to do so, there should be a Promote to Article link on the Blog entries.
As for the php article, I can give you my quick query that simply lists all the articles in one particle section. You can modify it to do what you want:
$myquery2 =vB::$vbulletin->db->query_read_slave($myquery = "SELECT cms_nodeinfo.title AS title FROM cms_nodeinfo RIGHT JOIN cms_node ON (cms_node.nodeid=cms_nodeinfo.nodeid) WHERE cms_node.parentnode = 2 AND cms_node.contenttypeid = 18");
while ($myarts = vB::$vbulletin->db->fetch_array($myquery2))
{
$output .= $myarts['title']."<br />";
}
So, change parentnode to a different value for each section. (Also, verify that the contenttypeid for Articles should be 18 for your site.) That should at least get you started.
Sorry, I didn?t find how to do it.
I already changed the values but just get text from the title, but not content or images from the articles.
I don?t know about PHP, SQL or programming. :(
--------------- Added 1371772558 at 1371772558 ---------------
Well, after research a lot, I find this one:
https://vborg.vbsupport.ru/showthread.php?p=1949493
This solve that part. Just a question, is there anyway to have on this mod the same image for "read more" that in the rest of my sections?
Lynne
06-21-2013, 01:26 AM
Just a question, is there anyway to have on this mod the same image for "read more" that in the rest of my sections?
I would guess so. It's just a matter of changing the php to be the same in that widget as in other places on your site.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.