How to fetch only featured title articles using custom code inside current template index.php file in joomla 3.5? - joomla3.0

Can anyone let me know how can I get all featured articles in current template index.php file?

Articles aren't sorted based off of templates, but rather the category they are associated with. If you are intent on it, a MySQL call written in PHP can search for and load all articles that meet your requirements and can then be displayed with a loop through the objects/arrays. Note: There are native Joomla modules and menu items that can achieve the same results without resorting to custom code.

Related

How can I create a deeper level of detail page for single list content in HUGO

I’m building our job posting pages with Hugo. So we will have a “Join Us” section with the list of job postings there and then we will need a detailed page for each job post, something like /join/software_engineer/. Hugo works well for this part, I created a section page template and single page template, with all the job posts in the content folder.
But now we need a deeper level of the detail page, like /join/software_engineer/submit/ to submit the resume and other info. The detail page may look very similar for every job post and will need some info from the single list content and a structured URL. Is there any way I can achieve this in a “HUGO way”? (Right now I’m coding the submit section with a modal, but still very curious if this kind of detail page is achievable.)
Any suggestions? Thank you in advance :).
if you like to go deeper your last folder needs to have an _index.md file (note the underscore). Then set the type in your frontmatter and create a custom layout e.g.
type: software_engineer
layouts/software_engineer/list.html
I have a site where I go many levels deep and that works well.

Use Categories/Tags from one 2sxc app across the site for all apps using the DNN Taxonomy terms list?

Looking to use the DNN Taxonomy either by using 2sxc's Folksonomy on its own or if there was a way to join the two tag tables and sync tags across site. For example the 2sxc Blog app has Categories and Tags, the 2sxc News app has Categories but no tags (out of the box), is it possible to use the same Categories list for both apps where the list is actually the tag terms set in the Vocabulary terms db table?
Is this use case something that can be achieved using the visual query designer?
I'm looking to use the 2sxc Blog, 2sxc News apps and create a similar Document management app where all apps use same Categories list (list set by us and will not change) and Tags which admins can add remove similar to Blog app which would be a hierarchical tree list in the Vocabulary terms table.
UPDATE:
Trying to achieve something similar to what WatchersNET has in their TagCloud module (https://github.com/w8tcha/WatchersNET.TagCloud) where you can select a DNN Vocabulary or use a custom tag which is a great feature to incorporate DNN's built in Vocabulary, see below
Yes, this can be done, and isn't implemented ATM.
I'm not sure if the DNN Taxonomy would be the ideal place to start - but if you're already using it it could easily work.
Yes, visual query would be a simple place to start - with a Dnn-Sql Data source.
Another alternative is to create a custom WebApi. ATM there is no dropdown-from-webapi yet, but if you need it, I'm sure we could add this in no time :).

Database search field database

I'm looking for a way to create a search box in wordpress, where visitors can search a number from the database. Is this possible? I have several package numbers in my database. I want to give my visitors the ability to search for their package number and request the information that comes with the number.
What you want to do can be done.
I suggest a different approach than using wp-exec. (I just looked at wp-exec website, and that plugin was created for WordPress 1.5, which means it hasn't been updated in about 5 years).
The content you want to display exists entirely outside of WordPress. I suggest you use a custom page template - see
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
In this case you would not use WordPress posts or pages or custom post types. On the custom page template you would write (or have written if you don't have the knowhow to do it yourself) PHP code to extract the info from the database and display it on a page.
For pages like that you would be using WordPress only as a container within which to display the results - they custom page would appear in the site Nav, The page of results would use the site's theme to display so it looks like the rest of the site.
But the code to display from the database would not use the WordPress loop. It would be PHP / MySQL data retrieval and display code.
I really doubt you will find a plugin that lets you display results from an external database, formatted the way you want them to appear. The reason is every external database is different, has different tables and table structures. And no two sites will want the external data visually displayed in the same way. So there is little generalization to encapsulate in a plugin as everyone wants it different.
I've created pages on some sites along the lines of what you want to do thus I know it can be done. But it requires writing custom code.

Creating an index page automatically

I'd like to have dotnetnuke build an index page based on pages that have a particular tabid. Are there any modules that do this already?
e.g. we create multiple pages under /News and then the index page lists links to all the news articles. Would be handy if we could also enter our own HTML text (maybe on the News article page itself) that is then displayed next to each link on the index page.
Thanks!
By default, there are no 'real' pages in DNN. Everything is served up in the Default.aspx from content that is stored in the database.
What you could do is create a module that populates data based on the TabId or Path. Then, there is a setting in DNN to make a module appear on EVERY page. Since the module is on every page, it could populate its data based on the TabId or the path, or just not show anything if it doesn't match your criteria.
For something like that, I used a module called SQLGridSelectedView from www.tressleworks.ca (I have no affiliation) and I wrote my own SQL to fill in the fields, and I defined a custom layout (instead of the default data grid) so I was able to do something like what you are asking without code.
There is a module from Ventrian called Child Links that does what you are talking about. You can use it to grab title & description from the pages below a relative to a specific page to build out menus etc.
It allows for formatting however you want as well.

qooxdoo and search engines

i am playing around with qooxdoo lately, it is really interresting, but all the examples build up everything from a blank html page, which would end in being the whole site not indexable from a search engine.
Is there a way to build qooxdoo widgets from html source... most important for me would be a table, so i put html code of the table in the page and tell qooxdoo to build the table from the html source, is this possible?
A general approach would be to to make all your "pages" accessible via URLs styled like example.com/#page=x. Then configure your web-server to rewrite to those URLs, so that for example page/x.html is mapped to #page=x. Finally, submit an XML-Sitemap to Google and other search engines.

Resources