AdvancedContent
Re: improve the content type "content"
I'm using the modified content type in a live site and never had that error.
Can you post the full error message?
So i can check out whats wrong in what line etc.
(I guess i did some changes to the file i'm using)
Can you post the full error message?
So i can check out whats wrong in what line etc.
(I guess i did some changes to the file i'm using)
Re: improve the content type "content"
Yeah I can do this later today.. also I found a few other error in there that I'll be fixing too... I'll have to get back in a few hours...
Re: improve the content type "content"
Could someone please clarify this? My understanding is that calguy's CGContentUtils will not provide this sort of functionality until CMSMS 2.0?alby wrote:wrongjmcgin51 wrote: Hopefully I'm wrong...![]()
I have not yet seen (for lack of time) and so I don't know if same level but calguy1000 has implemented a something like this in 1.6
Alby
Re: improve the content type "content"
As far as I can tell no... also sadly none of this is in the core of 2.0...tinhat wrote:Could someone please clarify this? My understanding is that calguy's CGContentUtils will not provide this sort of functionality until CMSMS 2.0?alby wrote:wrong :)jmcgin51 wrote: Hopefully I'm wrong...![]()
I have not yet seen (for lack of time) and so I don't know if same level but calguy1000 has implemented a something like this in 1.6
Alby
http://viewsvn.cmsmadesimple.org/filede ... ontent.php
Thou IMHO I think these need to be added... it made my client super happy and took a wildly long page and put it in order...
Cheers
Jeremy
Also I have uploaded what I did with this great addtion... so as you can see from only looking at the two tabs I put up, how much of a pain it was before this to edit the pages, no drop downs or anything... gosh that sucked...
Last edited by JeremyBASS on Mon Nov 09, 2009 4:18 pm, edited 1 time in total.
Re: improve the content type "content"
NaN:
Thank you so much for this plugin. This should really be the default Content tag that comes with CMS. I hope the devs consider adding this soon, it opens the door for so much improved behavior.
For example the default "specific page metadata" in the Options tab I consider useless, when I have a user update their own website they're not gonna remember how to write an html meta tag like <meta name="keywords" .... instead it's much easier for me to add this to their template:
Then all they have to do is enter whatever keywords they want in each individual page in their site in the 'Keywords' content block, and as an added bonus the page_tab='Meta' option creates an extra tab for Meta tags at the same level of Main/Options/Preview.
This is simply AWESOME.
Thank you so much for this plugin. This should really be the default Content tag that comes with CMS. I hope the devs consider adding this soon, it opens the door for so much improved behavior.
For example the default "specific page metadata" in the Options tab I consider useless, when I have a user update their own website they're not gonna remember how to write an html meta tag like <meta name="keywords" .... instead it's much easier for me to add this to their template:
Code: Select all
<meta name="keywords" content="{content block='Keywords' page_tab='Meta' wysiwyg='false'}" />
This is simply AWESOME.
Last edited by hexdj on Tue Nov 17, 2009 5:58 am, edited 1 time in total.
Re: improve the content type "content"
I agree with the others: very good work NaN! This has an amazing potential.
Just my two cents : when cmsms added the "image" dropdown to the core content type, I must say that I was quite, unimpressed... most of the users I work with barely figured out that each file has a distinct uri, so needless to say when I showed them the image dropdown they just looked at me and nodded, and never touched it.
It would be nice if users could see pictures when selecting them, and it'd be ever nicer if there was a uniform way to do this everywhere in cmsms.
See for example http://forum.cmsmadesimple.org/index.php/topic,38867.0.html.
If you are interested, NaN, I'd like to try and find an interesting way to add a similar featured to your content type.
Plger
Just my two cents : when cmsms added the "image" dropdown to the core content type, I must say that I was quite, unimpressed... most of the users I work with barely figured out that each file has a distinct uri, so needless to say when I showed them the image dropdown they just looked at me and nodded, and never touched it.
It would be nice if users could see pictures when selecting them, and it'd be ever nicer if there was a uniform way to do this everywhere in cmsms.
See for example http://forum.cmsmadesimple.org/index.php/topic,38867.0.html.
If you are interested, NaN, I'd like to try and find an interesting way to add a similar featured to your content type.
Plger
Re: improve the content type "content"
IMHO if a class is added to the options tag, it'd be super simple for it to be done in the theme... I was hoping to work on mine today so I'll test it out and post the resulates... I still own NaN the errors... thou I think I fixed most of them nowplger wrote: I agree with the others: very good work NaN! This has an amazing potential.
Just my two cents : when cmsms added the "image" dropdown to the core content type, I must say that I was quite, unimpressed... most of the users I work with barely figured out that each file has a distinct uri, so needless to say when I showed them the image dropdown they just looked at me and nodded, and never touched it.
It would be nice if users could see pictures when selecting them, and it'd be ever nicer if there was a uniform way to do this everywhere in cmsms.
See for example http://forum.cmsmadesimple.org/index.php/topic,38867.0.html.
If you are interested, NaN, I'd like to try and find an interesting way to add a similar featured to your content type.
Plger

Re: improve the content type "content"
Feel free to improve that code as much as you can 
The code is - at the moment - a bit ugly.
E.g. the very ugly construction to achieve the block_tabs what causes errors in IE.
@plger:
I already planned to integrate a date and a filepicker with upload function.
But if your filehandler module works as promised i don't need t reinvent the wheel.
I'll give it a try. Should be easy to integrate.
But at first i want to clean up the code and try to solve the block_tab issue.
Anyway, nice to see that this idea can be usefull also to others.
Thanks for feedback and suggestions.

The code is - at the moment - a bit ugly.
E.g. the very ugly construction to achieve the block_tabs what causes errors in IE.
@plger:
I already planned to integrate a date and a filepicker with upload function.
But if your filehandler module works as promised i don't need t reinvent the wheel.
I'll give it a try. Should be easy to integrate.
But at first i want to clean up the code and try to solve the block_tab issue.
Anyway, nice to see that this idea can be usefull also to others.
Thanks for feedback and suggestions.
Re: improve the content type "content"
What a great contribution! Thank you so much, NaN. Works perfect in 1.6.6.
I also made Content (Extended) the default Content Type by modifying line 75 of admin/addcontent.php
I Changed...
To...
I changed the documentation of your original plugin file to english for anyone whose interested. Just remove the '.txt' extension and upload it to the plugins directory.NaN wrote: There is no english documentation available in the plugin help for now but i will translate it if there is interest.
I also made Content (Extended) the default Content Type by modifying line 75 of admin/addcontent.php
I Changed...
Code: Select all
$content_type = 'content';
Code: Select all
$content_type = 'content2';
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
Re: improve the content type "content"
Here is a new version with some of the fixes to the error I found... One major one would cause a js error in IE in the tab making a page un-editable... Also I added bryan's English translation (cheers to you) and put in the image's file filter params and the element inline style params in there too...
So the errors I fixed where :
1.)Notice on the $multiple
2.) js error that resulted from a typo of </optgroup
3.) cleaned up the code a little... just a little
I think this is coming along nicely, nice to see people working together
... Also I started to add a param for ImgMode that would allow for the dropdown or a iframe to which imagemanger would be used inline like my cars mod... I just run out of time today but the coding there will be super simple to fit in I believe. Cheers
Jeremy
So the errors I fixed where :
1.)Notice on the $multiple
2.) js error that resulted from a typo of </optgroup
3.) cleaned up the code a little... just a little
I think this is coming along nicely, nice to see people working together

Jeremy
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
-
[The extension txt has been deactivated and can no longer be displayed.]
Re: improve the content type "content"
Hey so I had some time and got the image manger in... so with the new param ImgMode ie:
ImgMode="DropDown"
ImgMode="ImgPicker"
you can change back and forth.... but I didn't get time to add the selection part of it... thou you could just do one in a tab let's say to select and the other in a tab of its own to mange the images on the fly... that's simple... ok that sounds better now that I think about it... so... here it is....
Cheers
Jeremy
ImgMode="DropDown"
ImgMode="ImgPicker"
you can change back and forth.... but I didn't get time to add the selection part of it... thou you could just do one in a tab let's say to select and the other in a tab of its own to mange the images on the fly... that's simple... ok that sounds better now that I think about it... so... here it is....
Cheers
Jeremy
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
-
[The extension txt has been deactivated and can no longer be displayed.]
Last edited by JeremyBASS on Sun Dec 13, 2009 8:23 pm, edited 1 time in total.
Re: improve the content type "content"
I just noticed that the option "Disable WYSIWYG editor on this page" no longer works with this content type.
Re: improve the content type "content"
I tried to use it with content type='image' as following:
The new Tab "Header" shows no fields for images.
Then I tried to specify the ImgMode:
With this, all tabs contain no content anymore.
Any ideas?
Code: Select all
{content type='image' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
Then I tried to specify the ImgMode:
Code: Select all
{content type='image' ImgMode='ImgPicker' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' ImgMode='ImgPicker' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' ImgMode='ImgPicker' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
Any ideas?
Last edited by Andiministrator on Fri Dec 18, 2009 2:37 pm, edited 1 time in total.
Re: improve the content type "content"
ha I knew the lable 'ImgPicker' would bit me.. it should be more like ImgOrganizer or ImgManager
you want
{content type='image' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
{content type='image' ImgMode='ImgPicker' block='Organize Images' page_tab='Header' dir='Header' label='Organize Images'}
atm you can’t pick from there... it's just the "Image Manager" inline
Sorry for the confusion there
Cheers
jeremy
you want
{content type='image' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
{content type='image' ImgMode='ImgPicker' block='Organize Images' page_tab='Header' dir='Header' label='Organize Images'}
atm you can’t pick from there... it's just the "Image Manager" inline
Sorry for the confusion there
Cheers
jeremy
Re: improve the content type "content"
I cant get this to work. Can someone please tell me step by step how to do this?
I download 2 files and upload them. One to plugins direcotry (function.content2.php) and the other one in lib/clasess/contenttypes/ then I go to edit my template. I tried to add
And all i get is only another normal content edit field when i edit my page.
I download 2 files and upload them. One to plugins direcotry (function.content2.php) and the other one in lib/clasess/contenttypes/ then I go to edit my template. I tried to add
Code: Select all
{content type='image' block='image1'}
or
{content2 type='image' block='image1'}