I'm still pretty new to Magento, and am learning more about it every day. I've
been trying to learn all I can about internals such as managing collections &
recently stumbled on trying to filter a collection by two attributes. I wanted
to build a list…
This is a super short snippet that I ALWAYS forget how to do! Often I want to
build more complex where clauses with Propel Criteria
[http://www.propelorm.org/wiki/Development/Criteria] which use SQL functions
such as UCASE, LCASE, LEN and the date functions DAY, MONTH and YEAR. This…
When working with large and complex datasets in Symfony, there comes a point
where the ORM layer (Propel or Doctrine) causes more problems than it solves.
Sometimes it's necessary to debug large SQL queries built using the ORM layer,
and at other times it'sĀ appropriate to…
These functions and hooks let you customise the output of the_excerpt() template
tag. Just copy and paste into the functions.php file in your theme. This works
for both posts and pages.
To change the excerpt length (how many words are output - the default is 55
words) , define…