Closed (fixed)
Project:
Typogrify
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Jul 2009 at 14:28 UTC
Updated:
24 Jul 2009 at 14:00 UTC
Hello,
I am looking for some guidance on typogrifying my node title inside the template. Specifically, I can already format ampersands, but I'm still trying to figure out how to make curly quotes.
<?php
module_load_include('class.php', 'typogrify');
$title_typogrified = Typogrify::amp($title);
?>
What module and function do I need to use to format for curly quotes?
Thank you. Patrick
Comments
Comment #1
miklThe curly quotes comes via the SmartyPants function in smartypants.php. You could call that, but I'd recommend you set up an input format for the purpose instead and call it via the check_markup function, since that will cache the filtered result. This can be very beneficial, considering the heavy processing that's done in Typogrify, plus it'll be a lot more configurable.
Comment #2
miklComment #3
funkytraffic commentedSorry, but I donnot understand how to typogrify titels? Could you give a step by step instruction.
I am not very deep into coding.
Where put what?