[symfony-users] Re: sfSimpleBlog and symfony internal links

2007-09-24 Thread Dave Dash
This was one of my first problems when I was dealing with symfony, before
the new plugin system.

I used markdown to transform my code to HTML (in a CMS, but markdown works
wonders for blogs too ;) ):

Markdown uses a syntax as such:

My [homepage][link]

 [link]: [http://spindrop.us/]

 But I wanted:

 My [homepage][link]

 [link]: [EMAIL PROTECTED]

  So I took made my own version of PHP markdown and it would transform
url's using url_for, before outputting the link tags.  If you understand
markdown, this should be easy to follow and do.  If anybody wants help just
let me know, I can even dig up my old markdown.php.

-d

On 9/21/07, Francois Zaninotto [EMAIL PROTECTED]
wrote:

 As of now, you can't - you have to write an absolute link.

 But we could imagine a special filter transforming some special markup
 into a link. Maybe it is time to have a look at Tristan's
 sfPayloadFilterChainPlugin and create an adapter for the sfSimpleBlogPlugin
 the same way as it has been done for sfSimpleForumPlugin.

 François

 2007/9/19, Olivier Revollat [EMAIL PROTECTED]:
 
  Hello,
  i've installed sfSimpleBLogPlugin and I wonder how can I include symfony
  internal links in blog articles ... ??
 
  Any ideas ?
  Thanks ;)
 
 
 

 



-- 
Dave Dash
612.670.0621
Discover your favorite restaurant: reviewsby.us
gtalk: dave.dash

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfSimpleBlog and symfony internal links

2007-09-21 Thread Francois Zaninotto
As of now, you can't - you have to write an absolute link.

But we could imagine a special filter transforming some special markup into
a link. Maybe it is time to have a look at Tristan's
sfPayloadFilterChainPlugin and create an adapter for the sfSimpleBlogPlugin
the same way as it has been done for sfSimpleForumPlugin.

François

2007/9/19, Olivier Revollat [EMAIL PROTECTED]:

 Hello,
 i've installed sfSimpleBLogPlugin and I wonder how can I include symfony
 internal links in blog articles ... ??

 Any ideas ?
 Thanks ;)

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfSimpleBlog and symfony internal links

2007-09-19 Thread z01d

I always wondered how to store symfony internal links in a database
for my home-brewn cms. The quick and dirty way I'm using is to store
them in symfony helper syntax i.e. ?php echo link_to('anchor text',
'module/action')? and then eval() the string in the template. This
way you can also store links to components, partials, etc.
It works, but I wonder if there is a better way.

On 19 сент, 14:58, Olivier Revollat [EMAIL PROTECTED] wrote:
 Hello,
 i've installed sfSimpleBLogPlugin and I wonder how can I include symfony
 internal links in blog articles ... ??

 Any ideas ?
 Thanks ;)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---