5 of 11
5
Standalone Edit Forms
Posted: 27 May 2005 09:04 AM   [ Ignore ]   [ # 73 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  133
Joined  01-25-2004

Hmm, good tip Sue. Thanks

Profile
 
 
Posted: 28 May 2005 11:10 AM   [ Ignore ]   [ # 74 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

I’m thinking of a Batch edit form (20 last posts for example). You make all the changes to those entries and with one submit button they will all be updated.

To do this I removed the <input type=“hidden” name=“entry_id” value=”{entry_id}” /> and return=“weblog/edit_entry/{entry_id}.

I think I got closed to it but couldn’t finish the job. Is this possible with the plug-in?

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 28 May 2005 11:21 AM   [ Ignore ]   [ # 75 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  04-29-2002

Actually, EE Lover, if you fail to specify an entry_id, you get a new entry. I did this accidently a few time.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 28 May 2005 11:30 AM   [ Ignore ]   [ # 76 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

Yes Sue, this is the problem I have with my idea.

So do you say it is not possible to have such thing?

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 28 May 2005 11:34 AM   [ Ignore ]   [ # 77 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

There is nothing in EE that will support the simultaneous updating of multiple entries like you want.  You would have to write custom code to handle that.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 28 May 2005 11:44 AM   [ Ignore ]   [ # 78 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

Then I will add this as a suggestion for Solspace. Maybe he would add this feature to his next pl release. =)

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 28 May 2005 11:59 PM   [ Ignore ]   [ # 79 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  281
Joined  11-30-2002

Solspace, this is a really really awesome plugin, thanks for writing it!

I needed to pull content directly from the database, like Chris said above, so I added some code to the plugin. I’ll paste it here if anyone wants to use it:

// ----------------------------------------
//  Field Contents
// ----------------------------------------
//  This function returns the unformatted
//  field contents pulled directly
//  from the database
// ----------------------------------------


function field_contents()
{
global $DB, $TMPL;

$field_name = ( $TMPL->fetch_param('field_name') ) ? $TMPL->fetch_param('field_name'): '';
$entry_id = ( $TMPL->fetch_param('entry_id') ) ? $TMPL->fetch_param('entry_id') : '';

if (
$field_name == '' || $entry_id == '' )
{
return;
}



$query
= $DB->query("SELECT field_id FROM exp_weblog_fields WHERE field_name = '$field_name'");

if (
$query->num_rows == 0 )
{
return;
}

$field_name
= "field_id_".$query->row['field_id'];

$query = $DB->query("SELECT $field_name FROM exp_weblog_data WHERE entry_id=$entry_id");

if (
$query->num_rows == 0 )
{
return;
}

return $query->row[$field_name];
}

// End field contents

Profile
 
 
Posted: 29 May 2005 03:20 AM   [ Ignore ]   [ # 80 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  04-29-2002

Yvonne, how about an example on how to use this new functionality.

For instance, here’s one of my textarea links:

<textarea name=“field_id_4” cols=“50” rows=“8” onclick=“setFieldName(this.name)”>{site_body}</textarea>

What would I need to do instead?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 29 May 2005 06:40 AM   [ Ignore ]   [ # 81 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

I have to apoligise to Solspace for being stupid about the so-called “creeping” <p> Br/> and space “problem” because there is no problem.

The solution is right there in the Form Helper plug-in in the form of the {exp:form_helper:field_parser} {/exp:form_helper:field_parser} tag pair. The documentation is only slightly misleading because it implies that this tag is for custom entry fields, but it works for the default fields ({body} etc.) also - so HOORAY and a renewed love affair with this plug-in for me!

Caution - I cannot be sure that this is all there is to it - all I know is that I was not using these tags before, and now that I do, the problem is gone. I am not sure what effect the code posted by spacey310 has on this, but I installed it anyway and edits are working brillianly without recourse to the control panel.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 29 May 2005 07:28 AM   [ Ignore ]   [ # 82 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

> The documentation is only slightly misleading because it implies that this tag is for custom entry fields, but it works for the default fields ({body} etc.) also

Actually, all entry fields are “custom” fields.  The ones that come with an EE install are only put in a Field Group labeled “default” because they’re set up by default for you.  You can edit and delete the summary, body, etc. fields just like all others; there’s nothing inherently different between them and any fields you set up.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 29 May 2005 08:06 AM   [ Ignore ]   [ # 83 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

Chris - thanks for clarifying. I mistakenly thought that the defaults were somehow not custom.

Further to my previous post, there is still an issue, because while the <p> and <br/> tags have been eliminated, extra blank lines are still being entered, but I have not had time to see how these can be overcome.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 29 May 2005 12:15 PM   [ Ignore ]   [ # 84 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  281
Joined  11-30-2002

Yeah, I forgot to give an example.

Sue, you would use it like this:

<textarea name=“field_id_4” cols=“50” rows=“8” onclick=“setFieldName(this.name)”>{exp:form_helper:field_contents field_name=“site_body” entry_id=”{entry_id}”}</textarea>

There are two parameters, field_name and entry_id, both are mandatory parameters.

Profile
 
 
Posted: 29 May 2005 12:40 PM   [ Ignore ]   [ # 85 ]  
Lab Assistant
RankRank
Total Posts:  300
Joined  01-30-2003

Hey Friends!

Thanks for so much participation in this plugin. It’s really exciting.

The field parser bug has been bugging me too. So it’s fixed-ish. Download form_helper 1.3 from solspace.com/software and you will see that when on auto-pilot, the field_parser function parses much more smartly now. Basically I told it to remove exactly what EE puts into a field and replace with something smarter. Let’s see if it helps. Field parser still works as before if you want to provide your own parse strings.

And one more thing, it won’t work properly unless you make a donation and turn three circles while chanting Sue Sue Sue.

Thanks again ya’ll. Ok Sue, I’m back to packing.

mk

Profile
 
 
Posted: 29 May 2005 02:19 PM   [ Ignore ]   [ # 86 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  04-29-2002

Mitchell - added a new thread here:

Problems with BR removal

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 01 June 2005 03:50 PM   [ Ignore ]   [ # 87 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

In SAEF there is a parameter for turning off the live url title (use_live_url=“no”)

Users like me who had this parameter set to no would have problem with their edit form because there is not a similar parameter and the form attempts to dynamically populated the url title.

There is also another reason way it is necessary to fix this, the linking mater. You see url titles should not be changed by changing the title by default. (It could be there as an option but not the default). There maybe people already linking to your post which you are editing.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 05 June 2005 02:18 PM   [ Ignore ]   [ # 88 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

solved that by adding this line:
<input type=“hidden” name=“url_title” value=”{url_title}” />

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 05 June 2005 08:40 PM   [ Ignore ]   [ # 89 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6077
Joined  08-04-2002

I hide it also grin

Profile
 
 
Posted: 06 June 2005 12:03 PM   [ Ignore ]   [ # 90 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

FR: edit expiration; same as comment expiration feature.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
   
5 of 11
5
 
‹‹ empty new blog      MoBlog Auto Check? ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65021 Total Logged-in Users: 44
Total Topics: 82108 Total Anonymous Users: 17
Total Replies: 441249 Total Guests: 201
Total Posts: 523357    
Members ( View Memberlist )