article

Joomla 3.1 intro image as read more link

蓝咒 提交于 2019-12-12 02:52:14
问题 In joomla 3.1 I edited in this file \components\com_content\views\featured\tmpl\default_item.php <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?> <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_intro_caption): echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"'; endif; ?>

Is possible to get the part of article before the cut in Joomla?

﹥>﹥吖頭↗ 提交于 2019-12-11 18:00:02
问题 I have the Joomla-site and I need to change the position of the part of text, which is intriductory text (before cut). "Change position" means set it at the top of article and the rest of text should be stay where it's now. So, becouse of the text of article is something constant thing I can't divide it in the parts by the usual tools of Joomla. May be is possible the get intro text in some php-variable and set it to the module, which I can insert where I need? Thanks. 回答1: To cut an "article

New articles don´t work in Joomla 3.3.3 anymore

蓝咒 提交于 2019-12-11 08:15:51
问题 New articles don´t work anymore after Joomla 3.3.3 update. Every new article I try to do it fails to open it. For example this article: http://eflexfuel.com/fi/lisatarvikkeet/asennuspaketti But I noticed that non-seo friendly site works fine: http://eflexfuel.com/fi/?option=com_content&view=article&id=50:asennuspaketti&catid=22&Itemid=139&lang=fi Same things happens every new article I try to make. I have tried different template. Try to fix articles dates. I haven´t done any changes but

Semantic HTML: List of Users

自闭症网瘾萝莉.ら 提交于 2019-12-10 17:36:19
问题 How should I mark up a list of users? Each user has a name, picture, and job title. How's this? <h1>Venmo</h1> <h2>Employees</h2> <ul> <li> <article> <img src="http://www.gravatar.com/avatar/7e6e0e2b73358e47e0b7f83f8111f75b"> <h3>Matt Di Pasquale</h3> <p>Software Engineer</p> </article> </li> <!-- ... --> </ul> Should I remove the article elements? Should I remove the ul & li elements? 回答1: This isn't so much a list of users as a table of data about the users. Each user has an image, a name

How to create article spinner regex in Java?

こ雲淡風輕ζ 提交于 2019-12-10 00:03:35
问题 Say for example I want to take this phrase: {{Hello|What's Up|Howdy} {world|planet} | {Goodbye|Later} {people|citizens|inhabitants}} and randomly make it into one of the following: Hello world Goodbye people What's Up word What's Up planet Later citizens etc. The basic idea is that enclosed within every pair of braces will be an unlimited number of choices separated by "|". The program needs to go through and randomly choose one choice for each set of braces. Keep in mind that braces can be

Magento not displaing stored articles

橙三吉。 提交于 2019-12-08 12:22:50
问题 I created a script to store articles in magento from external sources. This is what I'm currently doing $this->product = Mage::getModel('catalog/product')->loadByAttribute('sku',$this->artnr); Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID); if($this->product===false || $this->product->getId()<1){ $this->product = Mage::getModel('catalog/product'); $this->product->setSku($this->actindo['art_nr']); $this->newProduct = true; $this->product->setAttributeSetId($this-

Where to find Paint.NET multithreading white paper?

爱⌒轻易说出口 提交于 2019-12-07 12:33:48
问题 Like I wrote elsewhere, I seem to be sure that a white paper by Rick Brewster about multithreading used in Paint.NET once existed. I am not able to find any reference to this white paper again however. Does it (still) exist? And if so, where? EDIT: Found out in comments to an unrelated question that Paint.NET is still free, but code is no longer available? Is this related to the fact that I can't seem to find that white paper any more? EDIT2: Went straight to the horses mouth on this and will

Joomla 3.2.3 featured article ordering

吃可爱长大的小学妹 提交于 2019-12-07 07:32:56
问题 In Joomla 3.2.3 i can not make the article orders like in J 1.5.x , i want to make the frontpage article ordering like what i define at administrator area. I try several ways and still do not have any success, 1 weeks already ... :( The last i tried is this : a) Content => Featured Article => (at top right) sort table by "Ordering Descending" b) I moved the article in the order i want, then click at "Double arrow" to save it c) Then i click at "Options" (right top), it will open the Global

How do I float articles in two columns?

别等时光非礼了梦想. 提交于 2019-12-06 09:06:20
问题 I have this problem. I am building a social website and I have to create posts in two columns. The parent container is a section, instead the elements "post" are articles that have as their style float: left. How do I let slip to the post of the empty space that creates under those shorter? 回答1: there is no good solution in css yet. this is typically called a masonry or pinterest layout. use jquery. try... http://masonry.desandro.com/ or google 'masonry layout plugin' 回答2: This basic

Trouble importing boilerpipe in python

心不动则不痛 提交于 2019-12-06 04:54:35
I'm building an application using python which involves getting news articles from RSS feeds. As part of my project, I have decided to use boilerpipe in order to extract just the article content from the html page on which the article appears. Although boilerpipe was originally written for java, it has been ported to python too. You can see its page on github here: https://github.com/misja/python-boilerpipe The problem is that I get an exception when trying to import it using: from boilerpipe.extract import Extractor The error I get is: Traceback (most recent call last): File "", line 1, in