Profile

Cover photo
Mark Heinrich
Attended Alter
163 followers|15,575 views
AboutPostsPhotosYouTube+1's

Stream

Mark Heinrich

How Do I?  - 
 
Easy question. {% set description = "We have" ~ entry.title ~ "coupon codes" %}

How do I make/specify spaces between enty.title and surrounding text?
1
Ben Parizek's profile photoMark Heinrich's profile photo
2 comments
 
LOL. My bad. Thanks.
Add a comment...

Mark Heinrich

How Do I?  - 
 
Coming from EE. How to reproduce this tag/function in Craft?

{switch="<tr>|||"}
1
Mark Heinrich's profile photoBrandon Kelly's profile photo
3 comments
 
Yeah that's how you'd do it if you prefer cycle().
Add a comment...

Mark Heinrich

How Do I?  - 
 
How's going?

Quite simple question from me. How do I extract image url from the body (or any other) field (rich-text) to create thumbnails using image transforms?

Currently using the following solution (EE + Wygwam + CE Image):

{fieldname images_only="yes" limit="1"}

{exp:ce_img:single src="{src}"}

{/fieldname}

Thanks.
1
Brandon Kelly's profile photoMark Heinrich's profile photo
2 comments
 
nooo :(( Thanks for fast reply.
Add a comment...
In his circles
3 people
Have him in circles
163 people
khalid affaghrou's profile photo
Алексей Колмаков's profile photo
Jeff Herbert's profile photo
Jafor Saley's profile photo
Dj Cioby's profile photo
Thảo Trần Benly's profile photo
Frisur Ideen's profile photo
angela bolinger's profile photo
Muhammad Ashikuzzaman Ashik's profile photo

Mark Heinrich

How Do I?  - 
 
Any idea how to optimize this code?

{% if segment_1 == "some-value" and segment_2 != "" %}
<title>{{ entry.title }} - {{ siteName }}</title>

{% elseif entry.parent.id(7) is defined and entry.parent.id == 7 %}
<title>{{ entry.title }} - {{ siteName }}</title>

{% elseif segment_1 == "another-value" and segment_2 != "" %}
<title>{{ entry.title }} - {{ siteName }}</title>

{# top level pages #}
{% else %}
<title>{% if entry.metaTitle %}{{ entry.metaTitle }}{% else %}{{ entry.title }}{% endif %} - {{ siteName }}</title>
{% if entry.metaDesc %}
<meta name="description" content="{{ entry.metaDesc }}" />
{% endif %}
{% endif %}
1
Luke Holder's profile photoMark Heinrich's profile photoBrandon Kelly's profile photoNathan Huening's profile photo
5 comments
 
Wow! Amazing, thanks +Brandon Kelly 
Add a comment...

Mark Heinrich

How Do I?  - 
 
Sorry for this question but what is the best approach/conditional to return data based on parent id (or even multiple ids). Something like:

{% if parent id == 4,5,6 %}
then do something
{% endif %}

Thank you.
1
Brad Bell's profile photoMark Heinrich's profile photo
6 comments
 
Yes it does. Thank you for blazing fast support.
Add a comment...

Mark Heinrich

How Do I?  - 
 
Hi,

I'm trying to get the data from previous page (a webform, method="post"), normally, it would be something like this:

<?php echo $_POST['phone']; ?>

what do I need to use instead to make it work with Craft?

Thanks.
1
Brandon Kelly's profile photoMark Heinrich's profile photo
6 comments
 
Done.
Add a comment...
People
In his circles
3 people
Have him in circles
163 people
khalid affaghrou's profile photo
Алексей Колмаков's profile photo
Jeff Herbert's profile photo
Jafor Saley's profile photo
Dj Cioby's profile photo
Thảo Trần Benly's profile photo
Frisur Ideen's profile photo
angela bolinger's profile photo
Muhammad Ashikuzzaman Ashik's profile photo
Work
Occupation
Senior Project Manager
Skills
Market penetration, commercial acumen, negotiation and influencing
Basic Information
Gender
Male
Birthday
December 19
Story
Tagline
Work Hard, Play Hard
Introduction
A Dynamic Business Development Manager with 6 year's of experience leading business growth strategy for a multinational IT company, leading teams by example on key business development and merger and acquisition projects both in the US and Europe.

A skilled communicator and negotiator with a proven record of building successful business relations and developing opportunities through commercially focused strategies to achieve demanding targets consistently within deadlines and budget.
Education
  • Alter
    1996 - 2003
Links
Mark Heinrich's +1's are the things they like, agree with, or want to recommend.
8 Reasons Why Google Authorship Might be The Most Important Thing You Ad...
www.seoptimise.com

Each year, webmasters and marketing managers are faced with new developments and technologies, and it can be hard to know which to adopt and

Google Author Pic Not Showing Up? Solution
www.artdriver.com

There has been a lot of marketing talk about advantages of using a Google+ author pic next to your title link in SERPs (search engine result