How to use strings in pagination instead of numbers - codeigniter

I have a blog page that displays one article per page with next and previous links. Which i built with codeigniter pagination class. I would like my blog single article links to look like this
http://example.com/blog/article/i-am-an-article-title
Instead of
http://example.com/blog/article/1

$config['page_query_string']=TRUE;
$config['query_string_segment'] = 'your_string';

Related

Magento Anchor Tags

I have a list of FAQ links on my home page in a static block in the footer. Each link however just opens up the FAQ page.
My code sample
What is Individually Quick Frozen?</li>
What I want is that when a user clicks a particular link in the list on the homepage footer under FAQs (as above), the user should be directly be taken to the answer of that question on the FAQ page i.e. the page should scroll down to where the questions is answered.
My Code sample
<p><strong><a id="1">What is Individually Quick Frozen?</a></strong></p>
But no joy! what am I doing wrong?
Make your link look like this:
What is Individually Quick Frozen?</li>
or better yet
What is Individually Quick Frozen?</li>
Note: For Cms pages urls use direct_url as a parameter for the {{store}} directive. It avoids having a / at the end of the URL. Useful if your pages end with .html. It's not your case but it may be useful in the future.
Now your code in the cms page should looks like this:
<p><strong><a id="_1">What is Individually Quick Frozen?</a></strong></p>
Avoid using numerical ids for elements. It's not standard
Worked perfectly, be sure to update
<a href="{{store url="faqs"}}#_1">
"faqs" to what ever page you want your tag to land on though.

How to create a link in a apex-pl/sql-region?

for a Application in Apex i want to create some links with the htp-class with the properties:
The link must refers to a internal page of the app.
If the Link is clicked, i want to set the value of a "hidden-item" in the refered page
Some ideas?
greetings
Please, read the following documentation chapter: Understanding URL Syntax. It will answer on both of your questions.
some links with the htp-class
I don't know what is htp-class. May be, you mean HTP package or HTML class attribute.
Just want to note that you can use built-in capabilities of such APEX components like Reports and Lists to generate links to the pages of your app including item values setting. Here are the links to the docs: Lists, Column Link in IR, Column Link in Classic Report.
Good luck,
Alex

Retrieve the content of a section via MediaWiki API

I have a MediaWiki page set up in my company's intranet.
I would like to get the content of a section in a specific page using MediaWiki API (through AJAX).
I would like to refer to the section by its title like 'General' and refer to the page by its title as well, like 'Licenses'.
Is it possible somehow?
The only thing I could achieve is referring to the page by its title and refer to the section by a number like this:
http://mywiki.local/wiki/api.php?format=xml&action=parse&prop=text&page=Licenses&section=1
But let's say I create a new section before 'General' I would have to update all my AJAX URLs that queries this page. So this isn't good enough.
I couldn't find any working solution for this. Any ideas?
You can do this by first retrieving prop=sections to get the list of sections and their numbers:
http://en.wikipedia.org/w/api.php?format=xml&action=parse&prop=sections&page=License
Then make your original request, with the section number you figured out based on the previous request.
Keep in mind that two different sections can have the same name.

How do configure front page static articles for Joomla 2.5

I'm still pretty new to Joomla and I'm familar with adding custom HTML modules in various positions. I'm also familar with setting up the blog layout for the front page with leading articles, intro articles, etc. However I have a case where I would like to have a image slideshow with a static lead article under that, with 3 intro articles (one in each column), with all new articles listed below this hortizontally instead of being added to the top of the list. Is this possible and if so how can it be done?
see The R.I.P. Files
Thank you
Jim
For the slide show +static article I would either put it in a module in a position or put it inside a lead article. In terms of keeping your one article at the top one trick is to give it an order of -1. Another would be to manually maintain the order you want and use order by order.

What is the way to show small part of an article and make it open with read more link in codeigniter?

I am a newbie coder. I have learned a lot in the few weeks. Now I am making my blog site.
What I want is , show the limited part of 6 or 8 articles in the content div and make a read more link to show the article.
Can you tell me a way to do it?
Load the string helper and use the word_limiter, character_limiter (google for docs)
Or, contain a paragraph called "Summary" (varchar(255)) different to your main "Content" field (TEXT).
Initially load string helper and do as follows
word_limiter("data",limit);
You can check it here

Resources