the anatomy of a content part?

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

the anatomy of a content part?

Post by pSouper »

Hi Guys,
I was going to pm OG on this but thought it would a bit imposing..

I am modifiying the content part article_menu by adding two new radio buttons so that the list can be displayed either as a row or column.
the code for the new 'row display' is the tinyest of changes to 'cnt15.article.inc.php' as is creating the radiobuttons in 'cnt15.inc.php' but getting the value of the radiobuttons to the code is beating me

would anyone understand the anatomy of a content part well enough to help/teach me how i can do this?

any help apreciated.
and don't be shy on this one Oliver ;)

a little clue to help you understand what I am doing:
Image

cnt15.article.inc.php:

Code: Select all

if($result = mysql_query($alink_sql, $db) or die("error while getting link article list: ".$alink_sql)) {
	if ($orient == 0){
		while($row = mysql_fetch_row($result)) {
		$alinkmenu['link'] .= "<td valign=\"top\" nowrap>".$template_default["article"]["link_article_sign"]."</td>\n";
		$alinkmenu['link'] .= "<td><a href=\"index.php?id=".$row[2].",".$row[0].",0,0,1,0\" target=\"_self\"";
		$alinkmenu['link'] .= get_class_attrib($template_default["article"]["link_article_class"]).">";;
		$alinkmenu['link'] .= html_specialchars($row[1])."</a></td>"; //\n
		}
	}else{
		while($row = mysql_fetch_row($result)) {
		$alinkmenu['link'] .= "<tr valign=\"top\"><td nowrap>".$template_default["article"]["link_article_sign"]."</td>\n";
		$alinkmenu['link'] .= "<td><a href=\"index.php?id=".$row[2].",".$row[0].",0,0,1,0\" target=\"_self\"";
		$alinkmenu['link'] .= get_class_attrib($template_default["article"]["link_article_class"]).">";;
		$alinkmenu['link'] .= html_specialchars($row[1])."</a></td></tr>"; //\n				
		}
	}
User avatar
Oliver Georgi
Site Admin
Posts: 9948
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Contact me again please.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply