POST ONCE TO 2 DIFFERENT SECTION EDITORS

34 posts by 4 authors in: Forums > CMS Builder
Last Post: April 5, 2010   (RSS)

By weblinks - March 17, 2010


Re: [weblinks] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By gkornbluth - March 17, 2010

Could you post your question again?

The post was blank.

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By weblinks - March 17, 2010

Posting MESSAGE again... How it was blank the first time I do not know.

[font "Times New Roman"]POST ONCE TO 2 DIFFERENT SECTION EDITORS[/#000000]

[font "Times New Roman"]CMS Builder v1.23... I do not wish to upgrade![/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]Please read the entire text... [/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]I need to allow a User [Advertiser] to post text and photo in a Section Editor... and have this SINGLE POSTING ... ALSO post to another [different] Section Editor....[/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]EXAMPLE: I wish to have "Advertiser A" post to a Section Editor such as "manchester_lodging" AND, also have this same posting appear in a Section Editor such as "southernvermont_lodging"... WITHOUT the User having to enter all of the info over again in the 2nd Section Editor. The end result being that this single ad, created ONCE, appears in both Section Editors output.[/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]We need to do this in many different areas...eg... a posting in "springfield_lodging" must also appear in "centralvermont_lodging.[/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]Please reply asap.[/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]Regards,[/#000000]

[font "Times New Roman"] [/#000000]

[font "Times New Roman"]Bob T.[/#000000]

Re: [weblinks] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By gkornbluth - March 17, 2010 - edited: March 17, 2010

Hi Bob,

There have been a number of really important features added since 1.23, like automatic database backups, and much more. An upgrade to 2.03 would only take a few minutes, and the cost would be up to your generosity, but that's up to you.

Some thoughts.

The information fields in a section editor (table) can be displayed in any number of viewers (web pages) simultaneously.

I haven't worked out the entire logic, but you might want to include a checkbox field or a multi-value list field in each of your existing editors that let you choose where a particular advertisement is to be listed.

If it's realistic, you might want to set up one "advertising" section with a multi value list field that says show in all viewers with checked values, and the User could check which one were applicable. That might simplify things a little.

Then you could work out "if" statements in your viewers (pages) to test for the existence of the checked values and display the field information if they were checked.

There might be a more elegant solution, but those the ones I can think of at the moment.

Hope that gives you food for thought.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By Chris - March 17, 2010

Hi Bob,

There are probably many ways to accomplish what you're after, but duplicating data is tricky and fraught with problems. If you can explain exactly what you want the end result to be, we can offer potential solutions.

Based on what you've explained above, how about this:

Combine your "manchester_lodging" and "southernvermont_lodging" sections (as well as any other _lodgings sections) into a single section: "lodging". You can add a field called "location" to the lodging section, make it a "list field", set it to "multi value" (you can use checkboxes or a list), then supply a list of locations that your users will be able to pick from. That way, they can create one record which will "belong" to both manchester and southernvermont.

Please let me know if this helps or if you have any questions.
All the best,
Chris

Re: [chris] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By weblinks - March 18, 2010

Sorry.. but I'm really confused with some of the answers above....[/#ff0000]

"The information fields in the section editor (table) can be displayed in any number of viewers (web pages) simultaneously."[/#ff0000]

Are you saying that if I merely place the address of another webpage in the "Viewer Form" [print screen image attached], what currently appears on the first viewer [web page] listed will automatically ALSO be displayed on the 2nd web page listed under Viewer URL... e.g.... manchesterlodgingList.php, southernvermontlodgingList.php [/#000000]WITHOUT DOING ANYTHING FURTHER EXCEPT CLICKING ON SAVE????? I tried this and it obviously doesn't work?[/#000000]

Please note that [Example Only] I not only want to display that which is on the manchesterlodging.php page on the southernvermontlodging.php page... I wish to display THE RESULTS ON OTHER LODGING PAGES [e.g. springfieldlodging.php] ALSO on the southernvermontlodging.php page... TOGETHER with the results from the manchesterlodging.php page.[/#ff0000]

Further... above... there was a suggestion to COMBINE SECTIONS... How, if I have no other choice????[/#000000]

In short.. I will have maybe 25 different "lodging pages" [by town].. but, I ALSO wish to have them appear [as appropriate] on our Northern Vermont Lodging, Central Vermont Lodging, and Southern Vermont lodging pages.[/#000000]

Sorry if I have made the above more confusing.[/#000000]

Regards,[/#000000]

Bob[/#000000]

I would very much like to accomplish this with the least amount of work possbile.. and as simply as possible.[/#000000]

Re: [chris] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By weblinks - March 18, 2010

FORGOT TO SEND PRINT SCREEN WITH PRIOR POSTING... SEE ATTACHED... USED WEDDINGS.php as example.
Attachments:

viewer_printscreen.png 224K

Re: [chris] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By weblinks - March 18, 2010

Chris....

I'll try to make it more clear!

Your Comment... So, all of your ___lodging.php pages should display the same thing? Or at least, the same records but in different ways? Maybe you could mock up a static page so I can see what you want the results to look like? [/#000000][/#ff0000]

No! I DO NOT want all of the php pages to display the same thing. I want the listings on each of the TOWN LODGING PAGES to ALSO APPEAR on ONE of the THREE following pages.. NORTHERN VERMONT LODGING, CENTRAL VERMONT LODGING, or SOUTHERN VERMONT LODGING pages... In other words if ABC COUNTRY INN is located in Manchester Vermont and listed on our manchesterlodging.php... I want the content of this SAME LISTING to appear on a page titled southernvermontlodging.php A lodging establishment called ZZZ Country Inn located in Woodstock Vermont would also be listed on our page titled centralvermontlodging.php ... along with any other Inn located in Central Vermont.[/#000000][/#ff0000]

I'll be happy to phone you so that maybe we can get this done.... I've been working on this for 2 days and need to get these pages up.... Just give me the phone number.[/#000000][/#ff0000]

ALSO... Please tell me what you are referring to as VIEWER... I presume you are talking about the php web page the listing is to appear on???? If so, I upload my test page to the server on Earthlink and view it???? Please tell me what should go in the Viewer Url tab... is this part of my problem?[/#ff0000]

As an example of what I wish to do please look at http://www.linkvermont.com/skierlodging_stratton.php and presume that I want these listings [generated by your CMS] to ALSO appear on a page titled ALL VERMONT SKI AREAS... allvermontskiareas.php[/#000000][/#ff0000]

Best,[/#000000][/#ff0000]

Bob[/#000000]


[/#ff0000]

Re: [weblinks] POST ONCE TO 2 DIFFERENT SECTION EDITORS

By Donna - March 18, 2010

Hi Bob,

What Chris was trying to clarify -- while the dynamic content (ie, the different listings from the different areas) will be different, will the actual *layout* of the different pages be the same? ie, if you were mocking those up before adding in the CMS Builder content, would they virtually be duplicates, other than the listings that actually show up?

Generally, what you can do is instead of having a different section (and therefore, a different template) for each category, is to have a location category instead. You can then easily get a page of listings that are JUST in Manchester, another page of listings that are JUST in Southern Vermont, etc, but all using the same list viewer file. Totally cuts down on the number of additional files (and sections!) that you need, and will make your site so much easier to manage that way. :)

A "Viewer" page is basically the file that the public sees. There are two types of viewers, a "list viewer" that shows a list of different entries, and a "detail viewer" that shows only one entry. See the glossary for more details:

http://www.interactivetools.com/docs/cmsbuilder/glossary.html

Does that make more sense?
Donna

--
support@interactivetools.com