[Modification] Document Content Variables
#61 Guest_rthrash_*
Posted 08 December 2004 - 07:01 AM
#62 Guest_eko40_*
Posted 08 December 2004 - 08:15 AM
rthrash, on Dec 8 2004, 08:01 AM, said:
I've not yet installed this mod as I've no "visual" clue about what I can achieve with it, indeed a newbie and non-programmer problem. It would be useful if kind of example site or some screenprints were provided. I also wonder why the mod-download doesn't include the improvement yet as it doesn't seem to "harm" to include the one improvement. By the way etomite is great in its simplicity and more importantly flexibility, but then posters on this forum seem to be very aware of that. I'm only a bit concerned about development cycles and userbase.
#63
Posted 08 December 2004 - 08:30 AM
eko40, on Dec 8 2004, 02:15 PM, said:
Screenshots might be nice. If anyone would like to post, that would be cool. Otherwise I will look at posting something this weekend. The truth is... if you have a need for something like DocVars you would already know what it does. If you don't know how you would use it, then you probably don't need to install it. It is really just an extension of Etomite that gives a little more flexibility to the document concept. .... like I said... you probably shouldn't use it unless there is a specific need for it.
As far as the mod-download concept, I have not seen that complete. I think that Alex included it in 06 build, but it doesn't seem to be well documented - or working for that matter. Even if it was, this contribution would probably not fit there anyway. We are modifying some of the base code that is in the main Etomite parser and I dont think the mod-download was intended to allow that anyway. DocVars is fairly easy to install, but I agree it is not as easy as the install scripts that Alex wrote for the base etomite installer.
... and a little off topic for this thread... but I agree that Etomite is powerful for it's simplicity and flexibility. Another one that is starting to look a lot like Etomite with similar simplicity is CMS Made Simple (http://cmsmadesimple.org/). It looks like it has most of the same features except that I don't think it has PHP code concept (like Etomite's snippets). The snippets is really what makes Etomite the clear choice. But for all newbies that want to compare multiple CMSs and find one that they prefer, here is one of the better resources I have found:
http://test.opensourcecms.com/
... anyway... DocVars is the topic for this thread. If you do decide to try and install it, you can post your experiences/questions in this message thread for support. (I can't guarantee I will respond right away, but I usually try to get back in a day or two.)
JG
Apodigm, Inc.
#64 Guest_rthrash_*
Posted 08 December 2004 - 02:51 PM
Quote
The truth is you really don't explicitly need a visual example, but I certainly understand why you would ask. "All" (
With the stock etomite, you'd have to select the text between or within the relevant tags and modify the code. With DocVars, you would have individual fields for each and every one of those variables. The variable types are quite flexible too, including, radio buttons, select lists, text, textarea, htmlarea, and so on... It really is a lifesaver and makes it possible to really build some easy to maintain pages for people that really don't know or are afraid of seeing code.
It really should be considered essential and part of the core code base in my opinion. If you don't need it, you just don't add more variables... it's that easy!
#65 Guest_rthrash_*
Posted 08 December 2004 - 03:06 PM
- Allow variables to be assigned to multiple templates... I build sites with small tweaks to the main layout that still need all the relevant DocVars variables. A text list where you control(PC)/command(Mac)-click the different templates for ownership would be ideal. Want just one? Just select one.
- Only write the variables to the database that are needed... been discussed here, so enough said.
- Get the database prefix automatically from the config.
- Integrate DocVars into the regular Content box and be able to order the "official" content box into the sort order, or just make it a DocVar itself.
#66 Guest_eko40_*
Posted 08 December 2004 - 08:11 PM
I'm leading a Division at a University which contains a news & information, research, postgraduate and undergraduate programmes, learning environment and learning community "sections". I currently use an ASP based portal system with mods (ASP invision with scriptgecko mods) but feel that this is a dead end not only because it doesn't allow to deal with the ever increasing need to cater for "accessible" sites (preferably Bobby AA equivalent but at least Bobby A). I actually played quite some time with *that other CMS thing* and other CMS's such as typo3. *that other CMS thing* is having same accessibility problems and no clear release date for accessible versions and typo3 although powerful is quite cumbersome to use.
I prefer simplicity and decided to change to something like etomite because of its easy templating system. Also because most of my staff will have to be able to maintain parts of the content of the site without being bogged down by complex interfaces and I think etomite has done a terrific job in that area.
Now for the things that I try to develop:
1) Start page: I started developing the new site at http://www.prwiki.org to replace the one at http://www.ukac.org
The only thing that I need to "add" is a google search box ideally next to the top-left | remote access link. The image is displayed using the Random link function, but funnily enough even if I add more images in the designated folder it still only displays the same one over and over again, but that is not a key priority at the moment, the other pages are more difficult and important.
2) Course pages: I started playing with the postgraduate courses and would like to maintain a "split" layout as on the frontpage, but there's need for more content and "reusable content". For example "where to apply information" and "entry qualifications, etc. take a look at the ukac.org site under e.g. BA Public Relations. The MA stratcom at www. stratcom.org has "more elements" that I would like to clearly post. Any tips, ideas are welcome.
3) For the "community" bid I'm considering integration of SMF forum but have no clue how to do it without doubling up registration for key CMS editors.
4) Each course page needs to be ideally maintained and updated by the respective course leaders but sticking to their templates and "easy peasy is the key requirement"
5) At the moment I don't manage to get it validated beyon bobby A so something is not right.
6) Finally, I am used to "skins" and each skin includes css information as well. I've not figured out how I can use CSS files in relation to my different temlates, do I just create a new one and link it to a particular template as in normal Dreamweaver development?
7) There are plenty more things as I want to create virtual open days where site visitors can look at short video streams of lectures, seminars and workshops offerend in the different programmes. Obviously the news and information section will become important and some key features with a small image and link to the complete news article are planned and very important for a site like this.
I'm sorry for the very long post. Its quite a big project which I solely undertake as kind of hobby even though it's my official Division's site. Obviously I've a problem with time hence the need to develop a framework that many of my colleagues and selected students can use to update informaiton regularly. Some sections are more static and only require annual updates while others are aimed to be more dynamic. I hope this all makes sense, and I look forward to any good idea.
By the way this still relates to the ;potential use of DocVars for which I experience a kind of "Rumpsfeld, ie
"The Unknown. As we know, There are known knowns. There are things we know we know. We also know there are known unknowns. That is to say "we know there are some things we do not know, but there are also unknown unknowns, the ones we don't know we don't know." (Department of Defense news briefing, Feb. 12, 2002)
#67
Posted 09 December 2004 - 09:30 AM
Quote
This would be teh problem that the caching is on when so that the page wil be loaded out of cach instead of a clean refresh.
#68 Guest_eko40_*
Posted 09 December 2004 - 01:18 PM
#69
Posted 09 December 2004 - 01:30 PM
eko40, on Dec 9 2004, 02:11 AM, said:
The only thing that I need to "add" is a google search box ideally next to the top-left | remote access link. The image is displayed using the Random link function, but funnily enough even if I add more images in the designated folder it still only displays the same one over and over again, but that is not a key priority at the moment, the other pages are more difficult and important.
ok... adding a google part to the page would just be a simple case of editing your template file(s). (no docvars)
... on the random images... if you turn off caching for all pages that use that template then your random images may/would work. Of course you loose the benefit of a caching... Here is possibly one place where DocVars might work. You could create a DocVar called "PageImage". What happens now is that on every page you can specify the image that you want to use on that page. In your template you would call it like you call the content [*PageImage*] ... of course now it would show the same picture every time you went to that page. But caching could be used in this situation. It really depends on which is more important.
eko40, on Dec 9 2004, 02:11 AM, said:
... as long as your reusable content is going to be in the same area on the right, you don't need DocVars. You can create Chunks ... which are basically reusable html content... then you can call the chunks in your content area just with a simple tag like {{chunk}}. You can also call snippets in the content area using the etomite tags for snippets [(snippets)]. Both of these are standard parts of Etomite.
eko40, on Dec 9 2004, 02:11 AM, said:
It looks like the forum is already in there. Obviously, your website administrators would need to be able to log into the forum administration and/or the Etomite administration. If you want to try and combine them so that they use the same logins, you would need to modify the code for either one so that it pulls the username and password from the other site's administrator entries.
Anyway... this is just PHP coding now and still not related to DocVars. I haven't seen anyone put forum integration contributions for Etomite yet... so if you get it to work, you should post it in the Etomite library.
I can say from experience that integration of 3rd party items are very difficult in Etomite. The menu structures and Etomite manager layout is not very conducive to it. We tried to integrate phpList into Etomite and I still don't have it working the way that I want. Most 3rd party apps (like phpList and most forums) have administration consoles that have menu links on the left or right... which means that you need to destroy the frames that the Etomite manager puts up. It can be done, but it makes the etomite manager harder to navigate in non-IE browsers.
eko40, on Dec 9 2004, 02:11 AM, said:
... not DocVars ...
For this you probably want to use the Etomite user manager. You can create admin user in Etomite with different priveledges... superadmin (you), and admin that can edit documents. I've never played with it much, but I think you can also set up per-user rights on each document. not sure ... but that was something I saw in the base Etomite package.
eko40, on Dec 9 2004, 02:11 AM, said:
I think this probably has more to do with your template than anything.
eko40, on Dec 9 2004, 02:11 AM, said:
lots of ways to do this...
(1) associating css with a template... and create multiple templates. The biggest problems with this is that if you want to change the theme of your entire website, you need to go to all documents to change the template... and you may end up with a bunch of templates that are very similar except for the CSS link
(2) create one template that calls a CSS link
now... you can quickly modify the theme of your entire website just by changing the link tag in that one template. You could also take this one step further and make a snippet in the template where you could code the css of choice in the snippet.
(3) probably not very useful... but you could use DocVars if you wanted to associate a different CSS for each page - keeping only one template file.
Basically your template would have the link to css file with the css file represented with a content tag. Then in each document you specify the css you want to use for that page.
... and I'm sure there are many more ways to get css skinning . I personally opt for simplicity, we like the theme to cross over all the website so we don't use different templates or css styling on a per-page basis. Instead, I would probably just embed the css of choice in the template and then just change the template when you want a new site theme.
One big thing I don't like about Etomite is the ability to quickly change many pages from one template to another template. This means that you could have multiple templates/themes on hand and then change them through the seasons.... I get around this by doing database level SQL queries to update the theme id in the documents.
eko40, on Dec 9 2004, 02:11 AM, said:
There is a NewsListing snippet in the base Etomite install that would probably handle this easily. Otherwise, you could create some snippet code to do more custom items...
eko40, on Dec 9 2004, 02:11 AM, said:
Let me know how the users feature of Etomite work. We've never used it, but it might be a nice thing for what you need.
... now ... It looks like from your post that you need to sort of review what templates can do, snippets, and chunks....
The Etomite documentation may be a good place to start:
http://wiki.etomite.com/HomePage
Like I said... I found some places where you could use DocVars... but it really doesn't match most of the items you described unless I imagined a unique scenario. If my scenario is what you need, then you probably want to use DocVars. But otherwise, you probably have most of the features you need from the base install of Etomite.
Thanks,
JG
#70 Guest_eko40_*
Posted 10 December 2004 - 02:54 PM
Many thanks for the extensive response to my extensive email. I'm gradually getting to grips with things and I like the flexibility. I manage now to get the frontpage comply with W3C Web Content Accessibility Guidelines priority 1 and priority 3 but not priority 2.
Priority 2 does'nt like fixed table widths, but flexible table widths mix up the "design" so I probably can never meet that requirement using tables. CSSP is still to cumbersome as well. it also wants my google search box to "Explicitly associate form controls and their labels with the LABEL element" which just doesn't look right, so far for "compliance". By the way tested with: http://webxact.watchfire.com/
Bobby gives similar results at http://bobby.watchfire.com/ but that's not surprising being the same organisation.
Etomite is very useful, but it would be handy if the backend would display only those components depending on users access privileges. This would make maintenance of subsections a breeze. Indeed it would compete with Macromedia's Contribute software.
#71
Posted 10 December 2004 - 03:12 PM
eko40, on Dec 10 2004, 08:54 PM, said:
Ok... here is an idea... (thinking just HTML pages in concept that you can apply to the template)..
In your main table, you can state width="80%" or something. Then your columns will automatically resize. You can make sure that a column is always at least a minimum width by putting a transparent one pixel image in it..
<img src="blank.gif" height="1" width="500"> where the the width is the size that you are trying to hard code for that column. obviously, you can use this sizing/spacing technique for a variety of purposes and it is a common HTML trick to get tables sized the way you want them. It can be used to specify the MINIMUM widths or heights of a space. you have to control the maximum using the percentage definitions in the tabel width element.
eko40, on Dec 10 2004, 08:54 PM, said:
I'm not too familiar with the google search form. Do they auto generate that code for you, or can you actually embed a form and elements. The LABEL tag is fairly easy to implement if you can control the form. One idea is to look at the output of your page to see the from that is generated by google:
<form method="GET" action="http://www.google.com/custom"> <LABEL for="q">Search: </LABEL> <input type="text" name="q" size="16" maxlength="235" value="-" /> <LABEL for="btnG">~</LABEL> <input name="btnG" type="submit" value="Google!" /> <input type="hidden" name="cof" value="T:#000000;LW:618;ALC:darkred;L:http://www.ukac.org/images/ukappliedcommdr.gif;LC:#000088;LH:67;BGC:#eeeeee;AH:left;VLC:#000044;GL:0;AWFID:439f470bcbfb3158;" /> <input type="hidden" name="domains" value="www.ukac.org" /> </form>
from this you can see the mismatch between the label and the text...
label: q text: Search:
label btnG text: ~
etc...
changing the labels shouldn't affect the operation of the form posting.
#72 Guest_rthrash_*
Posted 15 December 2004 - 06:25 AM
#73 Guest_rthrash_*
Posted 15 December 2004 - 07:26 AM
rthrash, on Dec 15 2004, 01:25 AM, said:
I'm fairly certain this is the block of code that assigns the DocVars to one (and only one) template, from around line 116 in mutate_docvars.dynamic.action.php:
<?php
// ADDED BY S.BRENNAN
$sql = "select templatename, id from $dbase.".$table_prefix."site_templates";
$rs = mysql_query($sql);
?>
<tr>
<td align="left"><?php echo $_lang['template_name']; ?>: </td>
<td><span style="font-family:'Courier New', Courier, mono"> </span><select name="field_template" class="inputBox" size=5 multiple>
<?php
while ($row = mysql_fetch_assoc($rs)) {
if(isset($content['field_template'])) {
$selectedtext = $row['id']==$content['field_template'] ? "selected='selected'" : "";
} else {
$selectedtext = $row['id']==$default_template ? "selected='selected'" : "";
}
?>
<option value="<?php echo $row['id']; ?>" <?php echo $selectedtext; ?>><?php echo $row['templatename']; ?></option>
<?php
// END ADDED BY S.BRENNAN
}
?>
</select> As you can see, I've tried to add "multiple" and "size=5" to the select box for the Template name, to no avail. It still renders as a single pop-up list... Any ideas?
#74 Guest_rthrash_*
Posted 16 January 2005 - 05:19 PM
multiple size="5"
to the line around 116 in mutate_docvars.dynamic.action.php seems to work just perfectly for adding a docvar to multiple pages... which is just awesome!
I have no idea what was going on earlier, but I certainly plan to investigate.
Hope this helps someone else.
#75
Posted 20 January 2005 - 04:55 PM
Am I correct in assuming that if I give these new tables a prefix, I'll have some additional code hacking to do to get this to work? Or has this been taken into account and I missed it somewhere?
Edit
Hmm... as I look at more of the altered code, I can see this:
$sql = "SELECT * FROM ".$this->dbConfig['dbase'].".".$this->dbConfig['table_prefix']."docvars_values WHERE...Which indicates to me that the prefix WAS thought of. So I just need to add this manually to the install SQL?
Edit II
Ok. Now as I look at the SQL again and see:
-- phpMyAdmin SQL Dump ... -- Table structure for table `etomite_docvars_values`It seems pretty clear that "etomite_" was the authors prefix and that it was just included by default in the MyAdmin Dump. So all of this is perhaps just one man's ramblings. Carry on.
Edit III
Doh! Guilty as charged... I didn't search first. If I had, I would have found the post IN THIS FORUM that covers this.
<... hangs head in "forgot to search" shame...>
#76 Guest_rthrash_*
Posted 20 January 2005 - 06:37 PM
#77
Posted 21 January 2005 - 06:08 PM
Quote
I shiver with delight. What will the upgrade be like? Same DB tables?
EDIT/ADDITION
There's a small bug you can easily fix in the new version. The DocVar values need to be escaped when saving to the database, lest some poor soul uses a (') or something. The relavant portion is line 373 in save_content.processor.php:
$sql = "UPDATE $dbase.".$table_prefix."docvars_values SET field_value='$value' WHERE id=".$id." and field_name='".$field."';"; change to $sql = "UPDATE $dbase.".$table_prefix."docvars_values SET field_value='".mysql_escape_string($value)."' WHERE id=".$id." and field_name='".$field."';";
#78 Guest_rthrash_*
Posted 21 January 2005 - 07:31 PM
#79
Posted 26 January 2005 - 07:42 PM
Jeff
#80
Posted 10 March 2005 - 06:18 AM
Any idea why this is happening?
Also does it have anything to do with why the images are not showing up correctly to the left of it? You'll notice etomite is not pushing [*alias*] out correctly.
Cheers
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked








