Jump to content

Search the Community

Showing results for tags 'hanna code'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. Here is the scenario. You have developed a blog or news site or blog section to your site and you have created a basic tag system using a Page Reference field. How can you add related articles easily? This is one way by using Hanna code. I like this method because it gives me the choice of showing or not showing related articles and choosing the tag. My articles use a template called basic-page which includes a Page Reference field called tags. This is a multiple select field. I have created a Hanna code called "tagsearch" and given it the attribute "tag". In my textarea field it is used thus: [[tagsearch tag="fish"]] The Hanna code simply searches the title field of the tags pages for the single term and returns the pages that have that tag. I have limited the results to 8. From the results, we pluck the title field of the pages, the small image that I use for my thumbnail, and the url. However, we do not want to also return the page we are displaying, so we simply eliminate it by making sure that that none of the results have the same page name. Here is the commented Hanna code. <?php // Find the pages that use the specified tag $articles = $pages->find("template=basic-page, tags.title=$tag, limit=8"); // Start the loop foreach($articles as $article){ // Check we are only displaying articles that are NOT the current page if($article->name != $page->name){ // Add a thumbnail, but check it is there so we don't get errors if($article->image_small){ echo "<a href='{$article->url}'><img src='{$article->image_small->url}'></a><br>"; } // Grab the article title echo "<br><a href='{$article->url}'>{$article->title}</a>"; // end the check to make sure we do not show the current page } // end the loop } And that is it.
  2. I get this error on my site. I'm using the the 3.0.18 branch. Any idea? Error: Class 'ProcessWire\TextformatterHannaCode' not found (line 190 of /home/guyvervi/public_html/site/modules/TextformatterHannaCode/ProcessHannaCode.module) This happens when I try to access Setup > Hanna Code
  3. I am getting suddenly this error while trying to make some hannacode (Setup/Hanna Code). My site in local work perfectly, but not on the production site. Any idea? Class 'ProcessWire\TextformatterHannaCode' not found in /...site/modules/TextformatterHannaCode/ProcessHannaCode.module:190 Stack trace: #0 [internal function]: ProcessHannaCode->___execute() #1 /.../wire/core/Wire.php(347): call_user_func_array(Array, Array) #2 /.../wire/core/WireHooks.php(548): ProcessWire\Wire->_callMethod('___execute', Array) #3 /.../wire/core/Wire.php(370): ProcessWire\WireHooks->runHooks(Object(ProcessHannaCode), 'execute', Array) #4 /.../wire/core/ProcessController.php(240): ProcessWire\Wire->__call('execute', Array) #5 [internal function]: ProcessWire\ProcessController->___execute() #6 /.../wire/core/Wire.php(347): call_user_func_array(Array, Array) #7 /.../wire/core/WireHooks.php(548): ProcessWire\Wire->_callMethod('___execute', Array) #8 /.../wire/core/Wire.php(3 (line 190 of /home/guyvervi/public_html/site/modules/TextformatterHannaCode/ProcessHannaCode.module) I am using the latest version of PW (3.27)
  4. I'd like to see better Hanna Code management and I think 4 things could greatly assist. 1 - Tags to be able to tag a piece of Hanna Code in the same manner as we tag templates. We could then see the list of Hanna Codes arranged in the same format as templates. IE broken down by tag. 2 - Usage On the Hanna Code list i'd also like to see a column called Pages (and Templates?) telling me how many pages and templates use my Hanna Code. Again, similar to the Templates layout. 3 - Filter / Find The Find page has a tab called Filters for searching by template, field etc etc. In fact, I can filter by almost anything except Hanna Codes. 4 - Descriptions To be able to add a plain text description to a Hanna Code. I try to name my HCs in a helpful way such as Get-Video Get-Investor-News etc Sometimes I have several variations of the above and I'd like an at-a-glance way to distinguish them without having to click into the HC or at least be able to see the description once I've clicked in. Anyone else feel the same or do I use HC more than most?
  5. Hi to everybody, I'm new to Processwire and I'm really amazed by this CMS and framework. So thanks for this wonderful work!!!!! I managed to solve all the problems by reading this forum. Only one remains: I wanted to use "Hanna code" to insert into my text field some vimeo videos or google maps. I installed Hanna code and tried to create a new code like [[video_vimeo codice=100812490]] with the custom code: <iframe src="//player.vimeo.com/video/100812490" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> but when i click on the save button the system return me a 403 forbidden page. I already tried to uninstall and reinstall the hanna code but nothing. Can anyone help me?? Thank you very much!! Andrea
×
×
  • Create New...