Featured items won't stack in rioght hand columns - joomla3.0

My menu item "Home" points to a "featured article" which I have set with layout #leading articles =0, #intro articles=8, #columns =2. Order of presentation on the page is oldest first.
The welcome text on the left is quite long and sits on the left column ok. The next article is short as it has a read more break (like the other articles that follow) and sits on the right hand column fine.
But the next two articles hide down the bottom and across the page. I really want to make them fill up the empty space below the article on the right. There is a lot of space there as the article on the left is quite long. see www.resbona.co.uk
Is what I'm trying to do possible?- I'm using Joomlashack Vintage template with Joomla 3 (latest).
And if so how to do?
Thanks for any help
Derek

This is not possible with basic Joomla Content Component without modifying code. What you can do to archive this is:
Limit featured items count to 1
Add Articles Category module to right column
Set module articles ordering and filtering options to match your front page options
To archive the same using Joomla component only you will have to use Template Override and create your own layout for featured items or override default.

Related

Can display two record detail with different fields on Account object layout page?

I have one currency field named Full Fleet Potensial and i want display only this currency field only on left side column, middle column i need to display all detail field and right side i need to display activity.
I can't display only single field on right side column when i drag record detail component it has no filter to display only one field.
is there any way to display single field?
I try to create new layout and try to apply on right side column record detail component but it will change layout for middle record detail component also
Edit: dynamic forms work on standard objects from Winter'23 onwards.
https://admin.salesforce.com/blog/2022/learn-moar-in-winter-23-with-dynamic-forms-on-standard-objects
Not out of the box (yet).
The feature to drop single fields on lightning page layout is called "Dynamic Forms". But it works only for custom objects and Account is standard. Keep an eye on roadmap, next releases, maybe there's idea to upvote...
A developer can create aura or lightning web component with your field, then you'd drop it on that section of the page layout.
If you have VSCode, sfdx configured (bit of upfront investment to set it up but the result will be the bleeding endge of technology SF offers) - look into https://developer.salesforce.com/docs/component-library/bundle/lightning-record-view-form/documentation. If you don't - in a pinch you can work out of developer console to create Aura version of this component (click the button in upper right of that documentation).
This is also a cool working example if documentation is not your thing: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_load_record. Aura version is here: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_load_record.htm

Drupal 7 - how can I control content layout in a view?

I've been handed a design spec which requires a news listing in a specific format - e.g. image floating to the left, with the main title and content on its right.
I've created the articles listing using the views module and embedded the view as a block on the front page. However, I need to change the layout of the resulting list of items at an html level, as the items are not provided in the order or within the html tags that I need in order to deliver the design.
In order to style the output, I really need the views module to give me fine-grained control over the html tags being wrapped around each field for each article.
Is this possible in Drupal?
(edit: please note, this is not a css question - I know how to float and position things in css. I need to be able to modify the html tags applied to fields in a view - thanks!)
When you go to your view, you will see FORMAT. You can change the Format to HTML list with corresponding settings. Under Show, you will say Fields. In the FIELDS area, choose which content you want enabled. Let me know if this helps, or if you want more of an explanation. Go back into your view and click on your field. The next window that pops up should be to configure that field. You'll see style settings where you can define the HTML tags, classes, wrappers, etc.

Passing Arguments from a paginated Drupal Views Page url

I have a page generated by Views which lists 5 Articles at a time. This view is paginated so that page 2 of this View will list the second batch of 5 Articles, page 3 will list the third batch of Articles, so on and so forth.
My question: is it somehow possible to extract fields from Articles listed on the page you're currently on, perhaps via the url? And I only want to them on the Articles being displayed by the page the viewer is currently on and not all the Articles.
My intent is to have a Views Block that would ...
determine what page of the paginated View above you're looking at
determine what Articles are listed on that specific page
aggregate and display the Taxonomy Terms of those listed Articles (Articles have a Taxonomy Term field) in the block
do all the above automatically as you change what page you're looking at
The way I'm going about this is to list all the the Taxonomy terms in a block which is relatively straightforward. What I can't figure out is how to filter it based on what Articles are being displayed to me in a paginated page.
I was thinking maybe this is possible to use it using the url of the paginated page which goes along this format: ?page=1, ?page=2, etc.
If anyone could just point me to the right direction, I would appreciate it. I'm also open to alternatives.
What if you created another display of the same view as your Article page view?
You could add a Relationship for the Taxonomy Terms and then the Fields in the block view would be the appropriate fields from the taxonomy terms. You'll want to setup the same Filters, Sort and Pager options for the two displays are the same. That way the results should match.
Then you might just want to hide the pager from the block view. You could do that through a custom template for that view display, or maybe a preprocess function that hides the pager for just your view, or maybe via CSS.

Conditional Formatting based on layout view

Another question for you Filemaker Pro experts. The database I am developing starts with a Main layout with a number of buttons (e.g. insert new item, show all items, etc.). Each button is associated to a script, which takes the user to the relevant layout. In each of these layouts I show the buttons in a row, and highlight the current layout with inverse colour.
My problem is that some of the buttons lead to the same layout, viewed in different modes, and I don't know how to conditionally highlight the right button.
For instance, Insert new item and Show all items take to the same layout, however in the first case the script views the layout as a form and inserts a new record, while in the second I view as a list and show all records. The layout is the same, though, so I'd need to enact a conditional formatting based on something. How do I do that, and what should I check against?
Thanks in advance for any help.
Regards.
Presumably you are currently using the formula: Get (LayoutName) to decide on your conditional formula, why not try additionally using formulas: Get(WindowMode) and Get(LayoutViewState)?
You could conditionally format the button if (which sends user to MyLayout in browse mode):
Get(WindowMode)=0 and Get(LayoutName)="MyLayout"
Or (which sends user to MyLayout in form view):
Get(LayoutViewState)=0 and Get(LayoutName)="MyLayout"
.
Other functions which may help could be Get(FoundCount) and Get(TotalRecordCount). You can see the entire list of Get functions here.

Drupal combine nodes and comments in view

I have a view with nodes of the type 'Note' (custom CT). I have A view with comments that are associated with those nodes. How can I combine these views into one view so that I can filter them individually on the date ?
The simple way would be to make one view with notes and comments both in it and then using contextual filter to get the date.
Alternatively, to get them in a top wth notes and a bottom with comments, use attachment displays to get two views into one. Make your top view, then use 'Add+' where the page and block buttons are (top left) are to select a new 'attachment'. Make new view here then add the two together with 'Attachment Settings' then 'Attach to' and choose your first view. Magic!

Resources