| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Fri Feb 11, 2005 4:26 pm Post subject: Customisation of "Sections" ? |
|
I am using "Sections" a lot. As I explained, it give the possibility to be 'language dependant', which is much better than "Contents". But...
In the Admin panel for Sections, all the articles are mixed, whatever language they are written for!
My question: is there a way, in the Admin panel for Sections, to classify the articles by language (with a table per language)??
I guess all is in this part of the page index.inc within Section>>Admin
| Code:: |
OpenTable();
echo "<center><font class=\"option\"><b>"._LAST." 100 "._ARTICLES."</b></font></center><br>"
."<ul>";
$result = $db->sql_query("SELECT artid, secid, title, content, slanguage FROM ".$prefix."_seccont ORDER BY slanguage DESC LIMIT 0,100",false,__FILE__,__LINE__);
while(list($artid, $secid, $title, $content, $slanguage) = $db->sql_fetchrow($result)) {
$artid = intval($artid);
$secid = intval($secid);
$result2 = $db->sql_query("SELECT secid, secname FROM ".$prefix."_sections WHERE secid='$secid'",false,__FILE__,__LINE__);
list($secid, $secname) = $db->sql_fetchrow($result2);
$secid = intval($secid);
echo "<li>$title - ($slanguage) - ($secname) [ <a href=\"".adminlink("&mode=secartedit&artid=$artid")."\">"._EDIT."</a> | <a href=\"".adminlink("&mode=secartdelete&artid=$artid&ok=0")."\">"._DELETE."</a> ]";
}
echo "</ul>"
.'<form action="'.adminlink().'" method="post">'
._EDITARTID.': <input type="text" name="artid" size="10"> '
."<input type=\"hidden\" name=\"mode\" value=\"secartedit\">"
."<input type=\"submit\" value=\""._OK."\">"
."</form>";
CloseTable(); |
In the above code, I already modified the sorting by language, but it's still altogether... No seprataion by category or language... Anyone?
Thank you
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Fri Feb 11, 2005 5:41 pm Post subject: Re: Customisation of "Sections" ? |
|
Sections was virtually abandoned some time back - for now at least, it is low priority while the key add-ons are being sorted out.
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Fri Feb 11, 2005 7:51 pm Post subject: Re: Customisation of "Sections" ? |
|
I never understood why Section is abandonned. Because, if we have a web site, as mine, in 6 languages, Section is the only way to have language-based categories! ie.
The index of Content appears the same, indiferently of the language; right? while the content of Section's categories appears differently according to the language in use.
Or did I miss something?
Thank you for your patience
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Sat Feb 12, 2005 5:11 am Post subject: Re: Customisation of "Sections" ? |
|
It was to be dumped because it had so many security issues - however, it is still in cvs so maybe there has been a re-think.
I'm nat familiar withn the module - perhaps someone can provide a better alternative.
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
mortal.seraphim Nice poster


Offline Joined: Dec 03, 2004 Posts: 87 Location: Plano TX
|
Posted: Sat Feb 12, 2005 5:16 am Post subject: Re: Customisation of "Sections" ? |
|
Maybe try using the Content module. You can create a category (one for each language) and put content pages in all the categories.
I'm not sure how well this would work for you because I've never used the Sections module but it's worth a shot.
_________________ Mortal Seraphim
People complain too much.

mortal.seraphim's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD 4.10-RELEASE-p5/1.3.33/4.0.18/4.3.10/9.0
|
|
| Back to top |
|
 |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Sat Feb 12, 2005 1:03 pm Post subject: Re: Customisation of "Sections" ? |
|
I have tried COntent already. But it's (to my understanding) not as nice as Sections.
On this web site www.dharmaling.org, you can test the Sections versus Content.
On www.dharmaling.info (which is the working site, still in 8.2 the time I transfer all to the other database) you can see that directly from the meny you can go into one category of the sections (as Teachings, or Practices), according to the language you choose! Nice, no?
You don't have this in Content... or I don't know how to do it...
Thank you.
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
mortal.seraphim Nice poster


Offline Joined: Dec 03, 2004 Posts: 87 Location: Plano TX
|
Posted: Sun Feb 13, 2005 6:03 am Post subject: Re: Customisation of "Sections" ? |
|
Here's an example from my site.
I only have one category set up now because I just started this project a few weeks ago.
Categories List
Content within category.
Each category has a list of the content pages that are in that category, click on a content page and it takes you there.
Create a category for each language and when you create content pages, just categorize them according to their language.
If you do it right, which is not hard, it will work perfectly for you.
_________________ Mortal Seraphim
People complain too much.

mortal.seraphim's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD 4.10-RELEASE-p5/1.3.33/4.0.18/4.3.10/9.0
|
|
| Back to top |
|
 |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Sun Feb 13, 2005 9:10 am Post subject: Re: Customisation of "Sections" ? |
|
Thank you Seraphin.
Yet, in Section pages, there is the "friendly printing" and the possibility to 'explode' pages (with "previous" and next" pages), etc...
You have only one language on your site. So, you might not understand also the langage-thing...
Have a nice day
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
jeffk Supporter


Offline Joined: Jun 21, 2004 Posts: 322
|
Posted: Tue Feb 22, 2005 3:47 pm Post subject: Re: Customisation of "Sections" ? |
|
bother, i also use sections on my site as i use content for a difrent thing
_________________ CMS Version 9.1.2.1
PHP Version 4.4.4
MySQL Version 4.1.22-standard (client: 4.1.22)
jeffk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) CMS Version 9.1.2.1HP Version 4.4.4MySQL Version 4.1.22-standard (client: 4.1.22
|
|
| Back to top |
|
 |
BrokenCrust 500+ Posts Club


Offline Joined: Sep 06, 2004 Posts: 503
|
Posted: Tue Feb 22, 2005 4:28 pm Post subject: Re: Customisation of "Sections" ? |
|
I looked at your .info site since .org was deceased. I think the sections part is called "Daharma Content". I have to say that it doesn't look very different from the content pages. I could not see anywhere the option to have 'friendly printing'. There is the option for next and previous already in content in the same way.
Also it seems that you do not have translations for the headings in the main menu (this would be the same with content I think, and is a menu function not a module function), although I can see that there are translated pages (under Francais for example) for some of the English content. Is this your main request that you want to have the content display language specific pages?
BrokenCrust please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Tue Feb 22, 2005 4:47 pm Post subject: Re: Customisation of "Sections" ? |
|
.org seemed to have had a temporary problem, but is back now.
Right HERE you can see the list of articles, and at the end of which you have a printer icone (printing friendly).
As you can see, it is easy to create a link which goes directly into one section, like "teachings".
If you have choosen the French language, you'll see the French pages. If you've choosen the Slovene one, you'll see the Slovene pages, etc...
So far, I didn't find the way to do the same with Content...
Thank you
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Tue Feb 22, 2005 6:14 pm Post subject: Re: Customisation of "Sections" ? |
|
If i select english i see 9 pages
If i select french is see 4 pages
I want to see them all
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
shenphen Platinum Supporter


Offline Joined: May 19, 2004 Posts: 378 Location: Europe
|
Posted: Tue Feb 22, 2005 6:19 pm Post subject: Re: Customisation of "Sections" ? |
|
If you read English (ie. your choosen language is English) you see the pages you can read. If you're Russian, you'll see the Russian pages... 
This is exactly what I like
But you all seem so sure that Content is better, that I will surely give more attention and see what I can do with it...
BTW, DJMaze, did you get my PM about Coppermine?
shenphen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.29 (Unix) / MySQL 4.0.24 / PHP v.4.3.10 / 9.0.4 (browser: Firefox 1.0.4)
|
|
| Back to top |
|
 |
BrokenCrust 500+ Posts Club


Offline Joined: Sep 06, 2004 Posts: 503
|
Posted: Tue Feb 22, 2005 10:10 pm Post subject: Re: Customisation of "Sections" ? |
|
OK I see now the printer icon. This would be good in content I think. Very useful.
Also I tried multi language pages in content. It is possible to have pages under the same category in different languages (one in English, one in say French each only displaying when that language is selected) but it does not seem possible to have language specific category titles and descriptions.
BrokenCrust please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
BrokenCrust 500+ Posts Club


Offline Joined: Sep 06, 2004 Posts: 503
|
Posted: Tue Feb 22, 2005 11:03 pm Post subject: Re: Customisation of "Sections" ? |
|
I have updated the content module to have language sensitive categories. To implement this change however you must add a column to the cpg_pages_categories table.
language VARCHAR(30) NOT NULL
If you have already have content categories (and you do not want to delete them) you must add this column manually (with for example MySQL-Front) and enter the language for each category, and afterwards make the field NOT NULL). If you have no content (or you don't mind deleting it all), then it is easier to uninstall the content module and reinstall after replacing the files with those included here.
modules/Content/index.php
modules/Content/admin/index.inc
modules/Content/cpg_inst.php
BrokenCrust please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
|
|