You are not logged in.
Pages: 1
I recently updated my CV online. It was a static HTML website before – I had never even thought about using TXP because it didn’t seem like a traditional layout / format for the CMS. As a static website it remained, well, static for over 3 years. So when I finally needed to update it I almost gave up because of the sheer tedium of coding HTML by hand – that’s when it occurred to me I should probably be using TXP after all. In the end it took much less time to integrate with the CMS than it would have to finish coding by hand – and TXP opened a lot of doors for what was then possible. The site is here (shameless plug):
Aeron Glemann, Curriculum Vitae, Standards-based web application developer, Costa Rica – New York
I coded a quick and dirty tagging system using the TXP keywords field. In my forms I have something like this (wrapped inside chh_if_data natch):
<txp:php> global $thisarticle; assert_article();$keywords = explode(',', $thisarticle['keywords']);$anchors = array();foreach ($keywords as $keyword){ $anchors[] = tag($keyword, 'a', ' target="_parent" href="'.hu.'?q='.str_replace(' ', '+', $keyword).'"'); }echo implode(', ', $anchors); </txp:php>
The target attr because projects load in an iframe. Then I had to hack publish.php slightly, around line 590:
$match = ""; $search = " and (Keywords rlike '$q') $s_filter"; if (!$sort) $sort='Posted desc';Anyway, check it out - hope you like it!
Travel Atlas * Org | Start Somewhere
Offline
Hey, very swish!
Couldn’t get your ‘experience’ links to work though. They all go to ~aeronglemann/aeron/?q=something and I get 404s.
Love the examples that pop up on the right. Kudos.
[EDIT: Oh wait, it works now. Was I too quick for ya? :-p ]
Last edited by Bloke (2008-02-19 14:22:49)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline
Bloke wrote:
EDIT: Oh wait, it works now. Was I too quick for ya? :-p ]
Yes :) Just noticed that right after I posted the link. Now I just noticed that the results count is wrong…. well, it’s a tuesday.
Last edited by rloaderro (2008-02-19 15:11:50)
Travel Atlas * Org | Start Somewhere
Offline
The bubbles is my favorite thing too … saw this from CSS Mania first and didn’t even realize it was Textpattern…
Nice use of AJAX … mootools rocks ! Love that the links are real so AJAX or not you get the same page.
nuff-respec ::: dannyb
Offline
dbulli wrote:
Nice use of AJAX … mootools rocks ! Love that the links are real so AJAX or not you get the same page.
hi! Thanks for the kind words! Actually it’s not even half so clever as AJAX: it’s just an iframe. The page template in TXP for the iframe has a script that fades in the content onload – but it would work just the same with JS turned off (just no fade natch).
Last edited by rloaderro (2008-02-22 17:01:53)
Travel Atlas * Org | Start Somewhere
Offline
Pages: 1