Jul 05, 2009, 08:54 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2 3 ... 7   Go Down
  Print  
Author Topic: tvEditor beta 0.8.5  (Read 20671 times)
0 Members and 1 Guest are viewing this topic.
heliotrope
Coding Team
*
Posts: 2,517


WWW
« on: Jul 11, 2007, 12:59 PM »

Hi Folks,

Here is tveditor.
(for detailed features see screenshots)

what is tvEditor:
tvEditor is a GUI for tv options editing.
Dropdown, listbox, option, listbox-multiple and radio are supported (even those containing @BINDINGS)
You can edit, add, sort tvoptions.
You can search documents for each tvs or create custom forms.

INSTALLATION:

Step 1:

- unzip tvEditor.zip
- upload in assets/modules/ the tvEditor folder (keep the name as it is=>camelCase)
- Create a new module => tveditor
Copy and paste this line in the content
Code:
include_once($modx->config['base_path'] . "/assets/modules/tvEditor/tveditor.module.php");

Step 2:

In  tvEditor/snippets/ You will find several snippets
1/tvExplorer
2/tve_splitPagination
3/tve_AjaxSearch

Install each of them, keep their name as mentioned above.

To execute ditto in the backend you need to change one line in  ditto.class.inc.php .
This will not affect ditto in any manner
In the buildURL() function
Change:
Quote
$url = $modx->makeURL(trim($cID), '', $queryString);
to:
Quote
//$url = $modx->makeURL(trim($cID), '', $queryString);
         $url = (isset($modx->documentObject['id'])) ? $modx->makeURL(trim($cID), '', $queryString) : 'index.php?id='.$GLOBALS['modID'].$queryString;
         

Add the extenders=> tve.extenders.inc.php et tvefilter.extenders.inc.php
(they are in the ditto_extenders folder) in your assets/snippet/ditto/extenders.

Once done:
-Execute le  tvEditor Module
Click on the install button
This will add to your db the required chunk.

Once the module is installed, check in the configuration tab if ditto name match the name of ditto on your installation.

Now you can easily edit tv options

:-)
there are some options but my english is much too bad to give you the details

NOTE: Ditto2 is mandatory
TVs with multiple values (checkbox, listbox-multiple) must have widgets set to delimited list with value = ','
No other widgets is supported


SCREENSHOTS:

TVs List:
Columns can be sorted.



TV options list



Edit tv options



Edit single option



Add new options



Sort options values



Search document per tv



Form builder


Step 1: choose your template



Step 2:  choose the tvs you want to search



Step 3: find the documents which matches your criteria



Etape 4 : Edit TV values
And you can edit the tvs value from the list with QE



Toutes les étapes s'effectuent sans recharger la page grace a AJAX.

* tvEditor.0.8.5.2.zip (182.63 KB - downloaded 709 times.)
« Last Edit: Jul 16, 2007, 10:00 AM by heliotrope » Logged

raum
Full Member
***
Posts: 103



WWW
« Reply #1 on: Jul 11, 2007, 02:08 PM »

looks great!
can´t await testing it ...
Logged

mmjaeger
Sr. Member
****
Posts: 439


« Reply #2 on: Jul 11, 2007, 02:19 PM »

is there a download link somewhere or did I just miss it?
Logged
heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #3 on: Jul 11, 2007, 02:19 PM »

Sorry I forgot to attach the files 
first post updated
Grin
Logged

mmjaeger
Sr. Member
****
Posts: 439


« Reply #4 on: Jul 11, 2007, 03:00 PM »

Sorry I forgot to attach the files 
first post updated
Grin

just trying to install it but I seem to have some problems:

Warning: Invalid argument supplied for foreach() in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1233

moreover you're pointing to a line in the ditto class that doesn't exist: //$url = $modx->makeURL(trim($cID), '', $queryString);

note there is a trim now

hope we get this going so I can try it out
Logged
heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #5 on: Jul 11, 2007, 03:08 PM »


Warning: Invalid argument supplied for foreach() in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1233

Fixed
Download updated files in my first post
you only have to change class/tveditor.class.php

Quote
moreover you're pointing to a line in the ditto class that doesn't exist: //$url = $modx->makeURL(trim($cID), '', $queryString);

note there is a trim now

hope we get this going so I can try it out

You 're right
Now the line (around #958) in ditto class looks like
//$url = $modx->makeURL(trim($cID), '', $queryString);

change it to:
$url = (isset($modx->documentObject['id'])) ? $modx->makeURL(trim($cID), '', $queryString) : index.php?id='.$GLOBALS['modID'].$queryString;
         

« Last Edit: Jul 11, 2007, 03:13 PM by heliotrope » Logged

mmjaeger
Sr. Member
****
Posts: 439


« Reply #6 on: Jul 11, 2007, 03:30 PM »

now I'm getting this one:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1303
Logged
heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #7 on: Jul 11, 2007, 03:38 PM »

My bad  Grin
This error should go away once you run the installer

Whatever i've fixed the error in tveditor.class.php

See my first post.

:-)


Logged

mmjaeger
Sr. Member
****
Posts: 439


« Reply #8 on: Jul 11, 2007, 03:40 PM »

I'm afraid I already ran the installer before the update - I don't see the install button anymore - what do I have to do now?
Logged
heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #9 on: Jul 11, 2007, 03:48 PM »

This should be fixed in 0.8.5.2 (files attached to first post)

Anyway , if you need to reinstall tveditor in case you delete some of the required chunk.
Just change the param tve installed in the module configuration tab.
Set it to 0 and run the module.

:-)
Logged

raum
Full Member
***
Posts: 103



WWW
« Reply #10 on: Jul 12, 2007, 04:18 AM »

Hi Heliotrope!
Thanks for this great module! I just installed it (0.8.5.2) and it works perfectly, no functional problems encountered up to now. It just makes the handling of lists much easier - you could even allow clients to edit the values in a comfortable way.
... and all the search-functions will really make life easier ...

Just some small suggestions:
- usually with listbox-options just the value-field is shown. This changes as soon as one value look 's like "name == value". This is great ... But: it would be even greater if there would be an button to add the "value" column, or, if it allways would be shown as "value, if different from name" and
- if only the name is filled in without a value, the name should be used
- currently only "listbox,listbox-multiple,checkbox,option,dropdown"-TV´s are supported. it would be great, if the other TV´s would be shown as well. of course, most functions of the module are list-functions, but still it would be perfect to be able to have the others as overview as well ...

BUT: great module! It really makes MODx easier and faster to use ...


* tvEditor-options.png (31.92 KB, 938x482 - viewed 448 times.)
Logged

heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #11 on: Jul 12, 2007, 04:35 AM »

Hi,

thx for your feedback :-)

Quote
- usually with listbox-options just the value-field is shown. This changes as soon as one value look 's like "name == value". This is great ... But: it would be even greater if there would be an button to add the "value" column, or, if it allways would be shown as "value, if different from name" and
- if only the name is filled in without a value, the name should be used
Not sure to understand correctly :-(
MODx offers two ways to write tvs options.
tveditor does not offer the possibility to mix the syntax (value||value2 or name==value||name==value)
you have to choose one of them when you add the first options.

Quote
- currently only "listbox,listbox-multiple,checkbox,option,dropdown"-TV´s are supported. it would be great, if the other TV´s would be shown as well. of course, most functions of the module are list-functions, but still it would be perfect to be able to have the others as overview as well ...

That's a bit hard to do ! :-)
You can use tvexplorer for this
It allows to render any kind of tv (except file).

I could add a feature to allow you to code your form (as in tvexplorer) and call them in the backend.

:-)

Logged

lukwe
Full Member
***
Posts: 184



WWW
« Reply #12 on: Jul 12, 2007, 05:53 AM »


Searching /listing documents by TV value etc, installed flawlessly on 0.9.6; I would say this instantly bumps it to 0.9.6.7 !!

I believe there is an issue regarding TVs "name == value" in the current MODx core, it may affect further development of tveditor, please check  FlySpray#911


Logged

----------------------------------------------------------
http://www.linkedin.com/in/lucapost/
http://www.twitter.com/lukwe/
----------------------------------------------------------
raum
Full Member
***
Posts: 103



WWW
« Reply #13 on: Jul 12, 2007, 06:43 AM »

Quote
Quote
- usually with listbox-options just the value-field is shown. This changes as soon as one value look 's like "name == value". This is great ... But: it would be even greater if there would be an button to add the "value" column, or, if it allways would be shown as "value, if different from name" and
- if only the name is filled in without a value, the name should be used
Not sure to understand correctly :-(
MODx offers two ways to write tvs options.
tveditor does not offer the possibility to mix the syntax (value||value2 or name==value||name==value)
you have to choose one of them when you add the first options.

it is not really a problem ... but when testing (see the screenshot in my last post) I didn´t fill all values - therefore I had two names associated with a value and the others were just blank values - it would be great, if the default value (if nothing is filled in) would be the name ... it would be great, if the output would look like "name==value||name==name||name==name" or "name==value||name||name" instead of "name==value||name==||name==" if the 2nd and 3rd value are blank ...

Quote
I could add a feature to allow you to code your form (as in tvexplorer) and call them in the backend.
this would be great!!!!!!!! I would love to add a preview of some text-tv´s to the document-overview ... and thumbs of the selected images ;-)

Just now a new warning occured in tvexplorer:
Warning : Wrong parameter count for explode() in /www/htdocs/v158413/modx096/assets/snippets/ditto/extenders/tve.extender.inc.php on line 49
... I was deleting some TV´s, the warning was shown when I had just one list-TV without values, and now I can get rid of it ... before it worked fine.

And a question: in tvExplorer I already set the StartID. How can I change it now?

I just love your work! If somebody implements the functions of the current "Resources - Template Variables" - section it could just replace it - and bump MODx it beyond 0.9.6.7 ;-)                                                                     
Logged

heliotrope
Coding Team
*
Posts: 2,517


WWW
« Reply #14 on: Jul 12, 2007, 07:25 AM »

Quote
it is not really a problem ... but when testing (see the screenshot in my last post) I didn´t fill all values - therefore I had two names associated with a value and the others were just blank values - it would be great, if the default value (if nothing is filled in) would be the name ... it would be great, if the output would look like "name==value||name==name||name==name" or "name==value||name||name" instead of "name==value||name==||name==" if the 2nd and 3rd value are blank ...

That's weird
You should not be able to save the options when the form contains empty fields.
I will check this out.

Quote
And a question: in tvExplorer I already set the StartID. How can I change it now?

click on any label in document tree, the value will change accordingly

:-)

P.S about new features, I have been working for about 9 months on the module and the snippet i do not promise anything. I don't have too much free time to keep working on this
I think I will reauthor most of the code for 0.9.7
« Last Edit: Jul 12, 2007, 08:24 AM by heliotrope » Logged

Pages: [1] 2 3 ... 7   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!