Newbie Question: Using EE Tags in Weblog Entries
Posted: 09 May 2008 12:51 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  57
Joined  11-04-2006

I’m working on a Contact page, and I have my generic page template setup and working great for all my other pages (About, Previews, etc.), and data is being pulled from my “Pages” weblog entires just as expected.

BUT—I’m unable to get my contact form to work. Here’s a snippet from the Content field of the weblog entry for my Contact page:

<p>If you have any questions, comments, gripes or kudos, please don't hesitate to email using the form below.</p>
<br />

{exp:email:contact_form user_recipients="false" recipients="maury@site.com" charset="utf-8"}

<p><label for="from">Your name:</label><br />
<input type="text" id="name" name="name" size="40" maxlength="35" value="{member_name}" /></p>

<p><label for="from">Your email:</label><br />
<input type="text" id="from" name="from" size="40" maxlength="35" value="{member_email}" /></p>

<p><label for="subject">Subject:</label><br />
<input type="text" id="subject" name="subject" size="40" value="" /></p>

<p><label for="message">Message:</label><br />
<textarea id="message" name="message" rows="18" cols="60"></textarea></p>

<p><input name="submit" type='
submit' value='Send Message' /></p>

{/exp:email:contact_form}

My “Pages” template grabs my data here:

{exp:weblog:entries weblog="{my_weblog}"}
<h1>{title}</h1>

{content}

{
/exp:weblog:entries}

All my pages work except for the Contact page, which renders the EE tags as though they’re regular text—and I’ve made sure the weblog entry is set to No Formatting.

What am I doing wrong?

 Signature 

maurymccown.commy personal blogmy photos

Profile
 
 
Posted: 09 May 2008 01:09 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5957
Joined  08-04-2002

You need the Allow EE Code plugin to put tags in entries… Here

Profile
 
 
Posted: 09 May 2008 01:14 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  209
Joined  02-01-2007

Maury

I am not sure I fully understand how you have this set up, but, the contact form does not like being in a weblog entry (see advice above).

On a contact page I think it is common practice to ‘hard code’ a template purely for that purpose. As the ‘content’ of a contact page is very unlikely to change much there seems no benefit of placing it as a weblog entry.

Make sense?

 Signature 

Adam Wiggall.

Profile
 
 
   
 
 
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 10:33 AM
Total Registered Members: 60719 Total Logged-in Users: 15
Total Topics: 73172 Total Anonymous Users: 10
Total Replies: 394651 Total Guests: 451
Total Posts: 467823    
Members ( View Memberlist )