Etomite Community Forums: [Modification] Document Content Variables - Etomite Community Forums

Jump to content

  • (8 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • This topic is locked

[Modification] Document Content Variables Step before Content Templates Rate Topic: -----

#76 Guest_rthrash_*

  • Group: Guests

Posted 20 January 2005 - 06:37 PM

There should be an update to DocVars in the next week or so, that will be included with xWisdom's [Etomite Fork]2. Get your feet wet in the interim as they're really awesome and powerful!

#77 User is offline   aaronrjohnson 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 5
  • Joined: 05-January 05
  • Location:Ann Arbor, MI

Posted 21 January 2005 - 06:08 PM

Quote

There should be an update to DocVars in the next week or so, that will be included with xWisdom's [DO NOT CIRCUMVENT THE WORD FILTER]2.


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_*

  • Group: Guests

Posted 21 January 2005 - 07:31 PM

I can confirm that they're escaped... I got bit by that one too!

#79 User is offline   Bravado 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 21
  • Joined: 16-January 05

Posted 26 January 2005 - 07:42 PM

Just for starters, I just want to say that I absolutely love this mod and I'm certainly looking forward to seeing this kind of functionality in the upcoming 0.7 version of Etomite! Definitely improves on an already great application! :D

Jeff

#80 User is offline   iamrick 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 14
  • Joined: 08-December 04

Post icon  Posted 10 March 2005 - 06:18 AM

I've run into a small problem with the select box with multiple options. I just get the output: "Array". Have a look here...

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 :D

#81 Guest_rthrash_*

  • Group: Guests

Posted 10 March 2005 - 04:40 PM

DocVars' author isn't around any more and it's not really supported.

However, it has been significantly improved upon and extended in [DO NOT CIRCUMVENT THE WORD FILTER]2 in the Unofficial Mods forum... take a peek if you get a chance. :)

#82 User is offline   apodigm 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 41
  • Joined: 18-July 04

Posted 11 March 2005 - 03:04 AM

iamrick, on Mar 10 2005, 12:18 PM, said:

I've run into a small problem with the select box with multiple options. I just get the output: "Array". Have a look here...

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  :D



well... I'm still around but don't use Etomite quite as much. My current projects require intense user management and logic that really goes beyond Etomite capabilities. But I still love Etomite when I need a pure content-only CMS.

What is the "Array" content variable type? In other words, what data type have you selected when you created the variable? It seems to be unique from the other docvars so I would be interested in knowing how it is different.

I didn't see [*alias*]. Is this something that has already been fixed?


Thanks,
JG

#83 User is offline   iamrick 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 14
  • Joined: 08-December 04

Posted 14 March 2005 - 12:31 AM

apodigm, on Mar 11 2005, 01:04 PM, said:

well... I'm still around but don't use Etomite quite as much.  My current projects require intense user management and logic that really goes beyond Etomite capabilities. But I still love Etomite when I need a pure content-only CMS.

What is the "Array" content variable type? In other words, what data type have you selected when you created the variable? It seems to be unique from the other docvars so I would be interested in knowing how it is different.

I didn't see [*alias*].  Is this something that has already been fixed?
Thanks,
JG


Oh... I didn't realise it wasn't supported anymore :( The [*alias*] problem was fixed, dreamweaver had changed it to a unicode format and I didn't realise (stupid me!). But as you can see the Array problem is still there. The variables for this are things like:

Bank Spillover||Ground Cover||Hanging Baskets||Hedging||Pergolas||Pots & Tubs||Topiary||Screening etc.

#84 User is offline   apodigm 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 41
  • Joined: 18-July 04

Posted 14 March 2005 - 01:29 AM

iamrick, on Mar 14 2005, 06:31 AM, said:

Oh... I didn't realise it wasn't supported anymore :( The [*alias*] problem was fixed, dreamweaver had changed it to a unicode format and I didn't realise (stupid me!). But as you can see the Array problem is still there. The variables for this are things like:

Bank Spillover||Ground Cover||Hanging Baskets||Hedging||Pergolas||Pots & Tubs||Topiary||Screening etc.


iamrick,

If you wouldn't mind, I think I would need to log into your Etomite manager. You can PM me or send an email to web_at_apodigm.com

#85 User is offline   bwoodsdesign 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 227
  • Joined: 21-April 05
  • Gender:Female
  • Location:Saint Paul, MN - USA
  • Interests:volunteering, walking, computers, reading, cooking, trashy reality tv and cocktails when I'm not working (which is rarely, if ever)!

Posted 12 May 2005 - 04:56 AM

Been following this thread and it seems like a great mod.

Does anyone here have a live example page of where the docvars was utilized and in which part of the page?

Just curious. I'd like to include something like this in the future on a project I'm doing but I don't want to get in over my head before I decide it's worth my while.

Thanks!

#86 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,429
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 12 May 2005 - 05:24 AM

bwoodsdesign, on May 12 2005, 01:56 AM, said:

Been following this thread and it seems like a great mod. 

Does anyone here have a live example page of where the docvars was utilized and in which part of the page? 

Just curious.  I'd like to include something like this in the future on a project I'm doing but I don't want to get in over my head before I decide it's worth my while.

Thanks!

DocVars, which is now part of the [Filtered]2 unofficial mod, is no longer supported on this site... Try doing a web search for [DO NOT CIRCUMVENT THE WORD FILTER]+2 (without plus signs) if you are interested in using that package... Unfortunately, doing so will jeopardize any support on this site which, due to the major amount of core changes, is why the forked project has been moved off-site... :eto:

#87 User is offline   digitalmouse 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 7
  • Joined: 08-February 05
  • Location:Oldenburg, Germany
  • Interests:Ultimate Frisbee, bicycle touring, sailing, flying, role-playing games, board-games, programming

Post icon  Posted 29 June 2005 - 01:59 PM

greetings! i'm looking for a way to convert a static website to etomite- a website that has a 'left side' and 'right side' to it, separated by some graphics (see http://www.hobbensiefken-rastede.de/ to see what i am dealing with). i *think* DocVars will do what i need, but not 100% sure. my question is so:

using DocVars, can i create [*left-content*] and [*right-content*] placeholders (for example) that can be put in the template, and have different documents be attached to either of those document variables?

again, based on what i've read i would like to think DocVars (or maybe the MOD-x2 that was mentioned in the previous post) can do this, but not 100% sure.

any tips, tricks, and implementation suggestions are greatly appreciated!

:D

#88 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,429
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 29 June 2005 - 02:07 PM

digitalmouse, on Jun 29 2005, 10:59 AM, said:

greetings!  i'm looking for a way to convert a static website to etomite- a website that has a 'left side' and 'right side' to it, separated by some graphics (see http://www.hobbensiefken-rastede.de/ to see what i am dealing with).  i *think* DocVars will do what i need, but not 100% sure.  my question is so:

using DocVars, can i create [*left-content*] and [*right-content*] placeholders (for example) that can be put in the template, and have different documents be attached to either of those document variables?

again, based on what i've read i would like to think DocVars (or maybe the MOD-x2 that was mentioned in the previous post) can do this, but not 100% sure.

any tips, tricks, and implementation suggestions are greatly appreciated!

:D

Neither of the packages that you have mentioned are supported on this site any longer but you should be able to do what you want without either of those packages... My best advice would be to work out an appropriate template layout and ask for help when you have specific questions... I'm sure the community would gladly help you through any sticking points... :eto:

#89 User is offline   digitalmouse 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 7
  • Joined: 08-February 05
  • Location:Oldenburg, Germany
  • Interests:Ultimate Frisbee, bicycle touring, sailing, flying, role-playing games, board-games, programming

Posted 29 June 2005 - 02:21 PM

Ralph (rad14701), on Jun 29 2005, 04:07 PM, said:

Neither of the packages that you have mentioned are supported on this site any longer but you should be able to do what you want without either of those packages... My best advice would be to work out an appropriate template layout and ask for help when you have specific questions... I'm sure the community would gladly help you through any sticking points... :eto:


thought as much- and thanks for the quick reply! i do have a template made already for that website, and i *could* just force the client to use a document with this left-side/right-side format split by a graphic as a 'template-within-a-template' kinda thing (this is my current 'backup plan'), but my thought is that a second [*content*] variable is all i really need. i can then give the client some kind of drop-down ('left-side' etc.) menu in the edit page - something similar to choosing a template - so they can choose which side of the page they want a particular document content to be displayed.

i do believe i am fit enough in PHP to whip up a hack for this myself, but my post is more for a 'shout-out' to see if someone has already done this, or something similar, or those of you who understand the inner workings the best can see the hack(s) needed to complete my request. and i'd rather not re-invent the wheel if at all possible (time is money!).

thanks for your time!

[edit] hmm... maybe the ShowDoc snippet will do the job. (amazing what you find out when you search the forum and snippet library!)

This post has been edited by digitalmouse: 29 June 2005 - 05:24 PM


#90 User is offline   jlarson 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 2
  • Joined: 26-January 05
  • Location:Thailand
  • Interests:Etomite = dynamite

Posted 02 July 2005 - 03:02 AM

Ralph (rad14701), on May 12 2005, 01:24 PM, said:

DocVars, which is now part of the [Filtered]2 unofficial mod, is no longer supported on this site... Try doing a web search for [DO NOT CIRCUMVENT THE WORD FILTER]+2 (without plus signs) if you are interested in using that package... Unfortunately, doing so will jeopardize any support on this site which, due to the major amount of core changes, is why the forked project has been moved off-site... :eto:

You might find it easier if you search for just [DO NOT CIRCUMVENT THE WORD FILTER] (without plus signs).

Share this topic:


  • (8 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users