Jump to content


- - - - -

[Modification] Document Content Variables


  • This topic is locked This topic is locked
118 replies to this topic

#101 Dean

    Loves Etomite Forums!

  • Admin
  • 4,746 posts
  • Gender:Male

Posted 24 October 2005 - 07:32 AM

How is this related to DocVars?? (Is it? I don't know ;) )

You need to use the file upload manager within the etomite manager

Edited by Dean, 24 October 2005 - 10:01 AM.


#102 wildthing

    Etomite Forum Newbie

  • Member
  • 11 posts

Posted 24 January 2006 - 10:47 AM

I'm meen ... you have some document and you need to attach to this document some exel file.... or word file. With DocVars i could upload for each document just pictures but i'm need files to upload ... :blink: I need something like in this forum (Attachments)

#103 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,507 posts
  • Gender:Male

Posted 24 January 2006 - 02:40 PM

wildthing, on Jan 24 2006, 06:47 AM, said:

I'm meen ... you have some document  and you need to attach to this document some exel file.... or word file. With DocVars i could upload for each document just pictures but i'm need files to upload ... :blink: I need something like in this forum (Attachments)
When you say "attach" are you referring to simplay adding an attachment link into your document or are you wanting to display the contents of this attachment...??? If you are referring to the concept of storing attachments in your database, which is how I am interpreting your request, although it is possible to do this most of the development community frowns upon the storage of external content in blobs within databases due to reliability issues... Doing so would required that you, as the developer, be well versed in both PHP and MySQL because manipulating such data is not as easy as it may sound... The preferred method would be to creat an upload directory and then simply link to the external resource for downloading... Working with files stored in blobs entails use of mime types and sending mime-specific headers when extratcing them from the database for use...

#104 apodigm

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 24 January 2006 - 02:52 PM

err... I'm looking back at this code. I'm not sure the file-type docvar is working at all. Is it possible that it is storing the image directly into the database (and not really saving the file)? The code doesn't look like it is doing a file-upload and saving. Instead, it just dumps the post information directly into the database.

This might be something to fix as the code gets ported to the new etomite.

BTW... I've never successfully gotten "[DO NOT CIRCUMVENT THE WORD FILTER]" to work. However, they were working off a version of Etomite and they had a pretty strong marriage with DocVars. You may look into that code to see if they have some ideas on how to integrate in the new version of Etomite.

Good luck.

Edited by apodigm, 24 January 2006 - 03:30 PM.


#105 sipe

    Etomite Forum Newbie

  • Member
  • 13 posts

Posted 26 February 2006 - 12:10 AM

apodigm, on Sep 7 2004, 07:01 AM, said:

This was written based on the 0.6 (edit) FINAL release and I have provided my modified files if you just want to diff with your install.

apodigm, this seems exactly what I was looking for but missing in etomite. great job!

does this mod work with 0.6.1-RTM release, which I am thinking of upgrading to prior to actually taking docvars into use? can I just overwrite with your files or do I need to make all changes manually?

thanks for your help.

#106 Dean

    Loves Etomite Forums!

  • Admin
  • 4,746 posts
  • Gender:Male

Posted 26 February 2006 - 12:13 AM

Any changes made in the previous attached files (if there are any), will need to be manually re-done in any RTM code-base... do not simply use 0.6.0 files on an RTM install - It will break it!

TVars and DocVars are planned for 0.7 (hopefully)

#107 Guest_rthrash_*

  • Guests

Posted 01 March 2006 - 04:59 AM

That should be a huge boost for Etomite. Good choice!

#108 sipe

    Etomite Forum Newbie

  • Member
  • 13 posts

Posted 01 March 2006 - 06:18 PM

Dean, on Feb 26 2006, 03:13 AM, said:

Any changes made in the previous attached files (if there are any), will need to be manually re-done in any RTM code-base... do not simply use 0.6.0 files on an RTM install - It will break it!

TVars and DocVars are planned for 0.7 (hopefully)

LOL, I wasn't planning on overwriting the 0.6.1 RTM files with the DocVars files, merely enquiring what the exact changes are in each of the files packed in the zip, so those could maybe be "copied out" to the new version of etomite. :)

is there someone reading this who could help get this working for 0.6.1.? with so many happy users of DocVars out there, would anyone with the skills like to port DocVars on the latest Etomite release? I am sure the community would appreciate it and praise that someone for all its worth...I know I would, and very much so.

as for myself, since it seems that DocVars has what I really need now, I think I will take it into use on my 0.6 final rather than update to 0.6.1 RTM now and risk not being able to use it, unless there is someone who does not mind helping out with this.

#109 sipe

    Etomite Forum Newbie

  • Member
  • 13 posts

Posted 20 April 2006 - 10:11 AM

sipe, on Mar 1 2006, 10:18 PM, said:

is there someone reading this who could help get this working for 0.6.1.? with so many happy users of DocVars out there, would anyone with the skills like to port DocVars on the latest Etomite release? I am sure the community would appreciate it and praise that someone for all its worth...I know I would, and very much so.

now that the new etomite release Etomite (0.6.1 Prelude Final) is out, has anybody been able to use DocVars with it? I am tempted to upgrade to the new release, but am still hesitating, as I would really need to use DocVars with it. I am planning to mod my etomite installation with DocVars very soon, but unfortunately, I am not sure if I should upgrade to 0.6.1 first or not. can anybody please help me?

I have understood that we will need to wait until release 0.7, before etomite has this functionality as part of its core code. does anybody know whether the "mechanism" of how content will be addressed in etomite 0.7 version change from DocVars, that is do I need to rewrite all my page templates again, if I go with DocVars now?

thanks for your help!

#110 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,507 posts
  • Gender:Male

Posted 20 April 2006 - 01:53 PM

sipe, on Apr 20 2006, 07:11 AM, said:

now that the new etomite release Etomite (0.6.1 Prelude Final) is out, has anybody been able to use DocVars with it? I am tempted to upgrade to the new release, but am still hesitating, as I would really need to use DocVars with it. I am planning to mod my etomite installation with DocVars very soon, but unfortunately, I am not sure if I should upgrade to 0.6.1 first or not. can anybody please help me?

I have understood that we will need to wait until release 0.7, before etomite has this functionality as part of its core code. does anybody know whether the "mechanism" of how content will be addressed in etomite 0.7 version change from DocVars, that is do I need to rewrite all my page templates again, if I go with DocVars now?

thanks for your help!
The only change to the Etomite database for Etomite Prelude Final was the addition of a single data field in the site_content table... No major changes will be made until the next major release, Metamorphosis... :eto:

#111 sipe

    Etomite Forum Newbie

  • Member
  • 13 posts

Posted 21 April 2006 - 10:35 AM

Ralph (rad14701), on Apr 20 2006, 05:53 PM, said:

The only change to the Etomite database for Etomite Prelude Final was the addition of a single data field in the site_content table... No major changes will be made until the next major release, Metamorphosis... :eto:

sorry, I was a little unspecific because I was replying to an old thread.
I am currently running DocVars on 0.6 (Heliades), not 0.6.1 RTM.
from the previous replies I got the impression that DocVars should be ported to 0.6.1 (RTM or Prelude) in order for it to work properly.
therefore, I have not tried to upgrade even from 0.6 to 0.6.1 RTM as of yet, has anybody else done that? I would like to upgrade to 0.6.1 Prelude Final asap, if DocVars will still work on it...

...

BTW, I have also run into a weird error with my current setup, when trying to use a HTMLArea instead of Textarea for a (new) DocVars variable:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/customers/[mysitename]/public_html/manager/actions/dynamic/mutate_content.dynamic.action.php on line 632

can anybody please tell me what the problem might be? I have been able to get around this by actually writing the whole textarea content in html, but I would really like it to "hide" the html from editors.

#112 sipe

    Etomite Forum Newbie

  • Member
  • 13 posts

Posted 21 April 2006 - 10:38 AM

sipe, on Apr 20 2006, 02:11 PM, said:

I have understood that we will need to wait until release 0.7, before etomite has this functionality as part of its core code. does anybody know whether the "mechanism" of how content will be addressed in etomite 0.7 version change from DocVars, that is do I need to rewrite all my page templates again, if I go with DocVars now?

thanks for your help!

can anybody shed some light on this issue? if I work a lot with DocVars now, will I have to rework everything again, when 0.7 comes (and I suppose I will not need DocVars mod at that point anymore)? does 0.7 use the same way in page templates as DocVars does for content variables (e.g. [*mycontent*])?

#113 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,507 posts
  • Gender:Male

Posted 21 April 2006 - 01:30 PM

There is no need to double-post as most members who offer their support will read back through the message thread to get an idea of the overall problem... Support for DocVars may be limited as they are not an integral part of Etomite itself and I can't confirm whether anyone actually uses them, let alone knows their internal workings... Members have been warned about the lack of support when using unofficial mod's, which is the very reason why they are frowned upon here inthe forums... :eto:

#114 apodigm

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 22 April 2006 - 03:58 AM

First... DocVars was created years ago. Back then, Etomite was called PhaseCMS and it was fairly stable. I haven't really played with the new versions of Etomite, but it sounds like it is going through some radical changes with more planned in the near future. If you can't live without DocVars, you either need to port it to the new version, or live with 0.6.

I do know that DocVars was ported to [Etomite Fork]. But, honestly I've never seen a fully working installation of [Etomite Fork] yet. It sounds like some pretty need stuff, but I'm concerned that it was a fork of Etomite before Etomite went through its recent changes.

While I'm on the discussion of comparing CMS packages, let me state that I have learned that Etomite has a place in the list of useful CMS's to consider. It is simple, elegant and very user friendly for the novice webmaster. At the same time, it also has scripting capability and "snippets" which make it a good choice for users that need a little more sophistication but still in the basic realm of only content management. However, it is not as complex as Mambo/Joomla, and does not support communities as well as say Drupal or *Nuke.

My point is ... when choosing Etomite you probably don't need DocVars unless you have a specific application where DocVars is just a minor add-on to the website. Content templates or snippets probably can satisfy this requirement for you in another way. Or if you want to see if DocVars would help you install Etomite06 w/DocVars to test it. But if you are looking to run a very complex DocVars environment, you might consider one of the other CMS packages. I noticed that for several websites with specific requirements (real estate listings, sports scores, etc), I was able to find a community supported application module that plugs into one of the other CMSs.

I'd love to have someone port it to the new Etomite, or even see something like DocVars really integrated into the next version of Variable/Content templates. However, I've outgrown the capabilities of Etomite for most of my websites, so I really don't plan to support this contribution going forward.

#115 mamuni

    Etomite Forum Newbie

  • Member
  • 31 posts

Posted 06 July 2006 - 01:47 PM

Hi Guys:
How are you?
I hope ok.
I need a little help from you... (sorry if my question is too simple.)
I have this code, but I am not sure if it is ok since it is not working for me:
$id = $etomite->documentIdentifier; //current document// 
$docInfo = $etomite->getDocument($id); 
$course = $docInfo['pagetitle'] .' '. $docInfo['longtitle'];
$date = $docInfo['description'];
$temp = $etomite->getDocVars($resource[$id],'price');
$price = $temp['price'];

$output ='<form action="course_booking.html" name="form" method="get">';
$output .='<input type="hidden" name="course" value="'.$course.'" />';
$output .='<input type="hidden" name="date" value="'.$date.'" />';
$output .='<input type="hidden" name="price" value="'.$price.'" />';
$output .='<input type="submit" class="boton" name="submit" value="Send >>" />';
$output .='</form>';

return $output;
I mean, I get the course, date but not the price. I think I am not retrieving ok the price docvar of the current document :(
Thank you in advance!

Best regards
Mamuni

Edited by mamuni, 06 July 2006 - 02:24 PM.


#116 mamuni

    Etomite Forum Newbie

  • Member
  • 31 posts

Posted 10 October 2008 - 02:52 PM

Is it possible to get Docvars.
I tried to get it but I cannot download it.
I want to use it on a 0.6.1 Final (Prelude) installation. (Which is an upgrade from a 0.6.0 which was using docvars.
If not..
Is there any option please?

Thank you in advance.
Mamu

btw: it looks like I am the only nostalgic using this :)

Edited by mamuni, 10 October 2008 - 02:54 PM.


#117 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,507 posts
  • Gender:Male

Posted 10 October 2008 - 05:01 PM

View Postmamuni, on Oct 10 2008, 10:52 AM, said:

Is it possible to get Docvars.
Not sure if anyone has DocVars floating aorund or not... Support was dropped when the original authors started their own fork, which is a story in itself... It was never officially supported and I'm not sure if anyone ever integrated the code into the Etomite 0.6.1.x Prelude code base...

#118 mamuni

    Etomite Forum Newbie

  • Member
  • 31 posts

Posted 11 October 2008 - 02:22 PM

Hi Ralph
Thank you for your answer.
Do you think is it possible to replace DocVars -get something doing the same job or similar- by updating my Etomite installation to any of the newer versions and use a snippet, plugin...
I am stuck on that version and I cannot upgrade because I loose a half of the site.

Thanks a lot.


View PostRalph, on Oct 10 2008, 03:01 PM, said:

Not sure if anyone has DocVars floating aorund or not... Support was dropped when the original authors started their own fork, which is a story in itself... It was never officially supported and I'm not sure if anyone ever integrated the code into the Etomite 0.6.1.x Prelude code base...


#119 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,507 posts
  • Gender:Male

Posted 11 October 2008 - 02:35 PM

View Postmamuni, on Oct 11 2008, 10:22 AM, said:

Do you think is it possible to replace DocVars -get something doing the same job or similar- by updating my Etomite installation to any of the newer versions and use a snippet, plugin...
I am stuck on that version and I cannot upgrade because I loose a half of the site.
I don't know of any easy way to resolve these issues... Unfortunately, your situation is a prime example of why Dean and I have taken such a firm stance regarding "unofficial mod's" to the projects code base because it leaves members like you hanging as new releases are made available and you can't upgrade...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users