Main menu
Home
News
News from Alphaplug
Download
Forum
Support us
Search
Links
Demo site
Contact
Invite a friend
Joomlastreets News
Sign-up





Lost Password?
No account yet? Register

If you find my free stuff useful, why not leave me a little something with PayPal.

Donations are greatly appreciated, and help with the costs of providing FREE Joomla! addons.




Welcome, Guest
Please Login or Register.    Lost Password?

4 Q's: CSS, Sort list, Date modified, Pathway
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: 4 Q's: CSS, Sort list, Date modified, Pathway
#1560
4 Q's: CSS, Sort list, Date modified, Pathway 4 Years, 5 Months ago Karma: 0
I was thinking of using AlphaContent for my home page so as to show latest items with the parameters etc you offer. I have some questions please, though

1 - CSS
I can see that AlphaContent doesn't have its own CSS and relies on the template's CSS. I know nothing about PHP but from your alphacontent.html.php I can see that there are the "contentpaneopen" and "contentheading" (as well as a few other) classes from the template's CSS. The titles of items in AlphaContent seem to use the "contentpaneopen" class (if I'm correct), but I'd rather use the "contentheading" class for item titles if possible. Is there a way I could do this, and if so, how would I be able to do this? Or, better still perhaps, is there a way I could style the entire block result myself? Again, if so, how might I be able to do this please?

2 - Show sort list
I have "Show Hits" set to "no". Is there a way of removing the "Hits Desc" and "Hits Asc" from the drop down menu in the sort list? If so, how?

3 - Date modified
Is there any way to show the date modified of an item as well as showing the date created? (or have I somehow missed it in the configuration somewhere?)

4 - Pathway breadcrumb
If I have the setting set to "show pathway", I then get two pathways: Joomla's own and AlphaContent's. If I have the setting to not show the pathway, then I don't get either Joomla's or AlphaContents. Is this normal?

I would be very grateful for any help or suggestions you might have. Thank you.
stingray
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3062
Re:4 Q's: CSS, Sort list, Date modified, Pathway 4 Years, 1 Month ago Karma: 1
Hello all,

I have installed Joomla! 1.0.13 and AC 3.0.1 and I'm having the same pathway problem mentioned by stingray, and even worse.

I'm using AC to display a specific section and categories.

When clicking on a category or subcategory, the pathway adds the main category twice to Joomla!'s main pathway, and hides AC pathway and directory display.

This is an example of Joomla!'s pathway, repeating Treinamentos Realizados twice:

Início > Treinamentos > Treinamentos Realizados > Treinamentos Realizados > Norte

Then, when I click on the main Joomla! category Treinamentos, which is inside a section called porta and, has content items and a link to AC, it shows the section name in the pathway and repeats the category.

Início > Treinamentos > portal > Treinamentos

This problem does not happen when clicking on the menu item called Treinamentos.

Is there any solution to this?
ramonsodoma
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3065
Re:4 Q's: CSS, Sort list, Date modified, Pathway 4 Years, 1 Month ago Karma: 1
Hello all,

Looking at alphacontent.class.php I managed to solve my problem, by changing 1 line and commenting 1 line, as follows:

Near line 333, commented original and changed below, removing the link

if ( $ac_show_pathway ){
echo "<table class=\"contentpane\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
$indexalphacontent = "index.php?option=com_alphacontent&Itemid=$Itemid";
//echo "<tr><td>\n<a href=\"" . sefRelToAbs($indexalphacontent) . "\">" . stripslashes($directoryNameInstance) . "</a> $img ";
echo "<tr><td>";
}


Near line 382, commented line after }else{ statement
if ( $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->RELEASE >= '1.5' ) {
$pathway =& $mainframe->getPathWay();
$pathway->addItem( stripslashes($row->title), sefRelToAbs($indexalphacontent) );
} else {
//$mainframe->appendPathWay( "<a class=\"pathway\" href=\"". sefRelToAbs($indexalphacontent) . "\">aqui" . stripslashes($row->title) . "</a> " );
}


To solve the problem of AC pathway being displayed in another content, from another section and category all together, comment line 366 as follows:
if ( $ac_show_pathway ){
//echo "<a href=\"" . sefRelToAbs($indexalphacontent) . "\">" . $row->title . "</a>";

if ( $alpha != 'all' && $alpha!='' && $cat=='all' ){
echo " $img " . _ALPHACONTENT_LETTER . ": " . strtoupper($alpha);
}
}


To complete the removal of the AC pathway and the appended pathway item comment lines 479, 486 and 498 as follows:

// one categorie
if( $cat > '0' ){
$catIdTag = $cat;
if ( $ac_show_pathway ){
//echo " $img ";
}
$query = "SELECT id, title FROM #__categories WHERE id = '$cat'";
$database->setQuery( $query );
$rows = $database->loadObjectList();
$row = $rows[0];
if ( $ac_show_pathway ){
//echo stripslashes( $row->title );
}
if ( $alpha != 'all' && $alpha!='' && $ac_show_pathway ){
echo " $img " . _ALPHACONTENT_LETTER . ": " . strtoupper($alpha);
}
if ( !$prov ) {
$mainframe->SetPageTitle( stripslashes( html_entity_decode ( $directoryNameInstance . " - " . $row->title ) ) );
}
if ( $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->RELEASE >= '1.5' ) {
$pathway =& $mainframe->getPathWay();
$pathway->addItem( stripslashes($row->title), '' );
} else {
//$mainframe->appendPathWay( "<span class=\"pathway\">" . stripslashes($row->title) . "</span> ");
}


Unfortunately, this does not solve the problem, for it removes the AC patway completely...

Post edited by: ramonsodoma, at: 2008/01/04 20:02<br /><br />Post edited by: ramonsodoma, at: 2008/01/04 20:32
ramonsodoma
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1