I have a question for any SiteFinity experts out there. I'm coming from an umbraco background and have started developing a SiteFinity module to create a data container with relationships between entities.
There's an example of an online travel agency site on the Telerik YouTube channel. They build a module with the following content hierarchy;
Countries -> Cities -> Hotels
-> Restaurants
-> Airports
-> Festivals
https://www.youtube.com/watch?v=WCfc9GQoGoQ&feature=youtu.be
This all makes perfect sense if festivals were always located in a city. But what about the scenario where the festival is national? Would I have to implement the same content type of 'Festivals' against both 'Cities' and 'Countries' in order to accomplish this or is there a way to have 'Festivals' sit at the root of the hierarchy and allow me to selected a related 'Country' or 'City' as they are required?
Thanks,
Brian.
You might want to make Festivals its own type(DynamicModule). Then you can use related content and relate a festival to a Country or City or Both. This is assuming you you are using Sitefinity 7.xx
Related
Wondering if anyone knows a solution to this -
I’m building a (semi) simple weather app with OpenWeatherMap using swiftUI. Basically finishing up and adding some last touches. Would like to be able let users choose between cities if there is more than one city with the same name, but as far as I can tell the only access to a full list of city names OpenWeatherMap offer is a zipped JSON, there’s no api call. And its way too large to include in the bundle.
heres the link to the list - http://bulk.openweathermap.org/sample/
As far as I can tell, without being able to check a list of cities - it seems the only way to specify the right city is to add a comma and then country code in the search. e.g "rome" returns a location in the US, "rome, it" returns Rome, Italy. Which isn't a very good user experience.
Am I being stupid and missing something?
Perhaps the OpenWeather Geocoding API was not available in 2021 but it is now. You can use this API to search for cities around the world from their weather database.
https://openweathermap.org/api/geocoding-api
If you query only the city name (without state and/or country) it returns a list of matches. For example if you search for "Dublin" and limit to 5 results, it returns Dublin, Ireland and 4 cities named Dublin in the USA. Then the user can select from a list to confirm the correct city.
http://api.openweathermap.org/geo/1.0/direct?q={city name},{state code},{country code}&limit={limit}&appid={API key}
This seems to be their recommended way to get the latitude and longitude of a city by name to then query the its forecast.
Hey in order to get that list , You have to programmatically create a tableview which will be the half of height of that main view(set it initially to be hidden) and it should be visible when someone interacts with the searchBar or TextField (you'll need to make it visible in one of the delegate methods of tableview or searchBar , whatever you are using)
and render the city names in that tableview , that's it , it will be easy if you know a bit of Programmatic UI if not watch some YouTube videos by Sean Allen on programmatic UI and you should be good to Go !! Best of luck
How to organize a list of content items (i.e. projects in portfolio) into different categories (i.e. industries) in Kentico Cloud content as a service platform.
i.e.
Project 1 (content type project) - Commercial (industry)
Project 2 (content type project) - Commercial (industry)
Project 3 (content type project) - Health care (industry)
There are two solutions on the table:
Create a content type called industries and ad linked items element called industries to the project content type
Create a taxonomy group, called industries and tag the content item "client" with a tag
Our dev favored option 2, however, it seems not to be possible to localize a tag value and it would therefore never be possible to display the tag itself in the multilingual UI.
What would the official recommendation for this?
This question is a migrated from official Kentico Cloud Forum, that would be deleted.
When designing multilingual support for Kentico Cloud, localization of taxonomy groups was designed that way as well.
It is still in the plan to do it in the future, but as many other priorities arrive, multilingual support for taxonomy terms is currently postponed.
According to the question - there is no constraint to model taxonomy just using taxonomy groups.
The best way to model this use case is to use linked items elements functionality as it is in example. It supports multilingual and it could be used for categorization. And it is also possible to limit the element to allow placing only one content type (industry in your case).
I need a plugin for Joomla what simply lists out different stores under each other (imagine as a table where each row is a store with some details.) The difficult part is that I need them to be filterable for cities.
eg. if the visitor selects "New York", the plugin displays only the stores located in new york.
Do you know a plugin for this?
Thanks!
Use content and add tags for each city or use com_contact and do filtering in contact or use a smart search map or use tags again.
I need to build a basic CRUD joomla extension for a customer.
On the user's side, it must display a product list when the user choose a category, and the product details when an item is selected in the list. On the product details page, the user can send a message to the site's owner regarding the chosen product.
On the admin side, user must be able to add/modify/delete products and categories. That's about it.
Does anybody knows (a) good tutorial(s) that could help me get started with this project?
I've worked with php 4 years ago and have 5+ years experience in web development (.net), but i'm new to joomla.
Thanks in advance!
Sounds like to me you are looking for an e-commerce extension with a catalog mode (no purchases/no cart enabled) and an Ask a Question form on product pages. I know that at least Virtuemart has this ability exactly. I am sure there are other simpler carts that will also accommodate your need. http://extensions.joomla.org/extensions/e-commerce/shopping-cart
Spend a couple of hours trying out carts, no code writing required.
A great place to start is the Joomla docs site.
Checkout Component Development section.
Also, here is MVC Component Tutorial (there are 6 section to it, look for links at the bottom for "Next"), it will definitely put you on the right track. You will have to add a lot of your project specific things and do out of the box things, but it should be pretty easy.
Just keep things separate to make it easier
View/Template - your presentation
Controller - logic
Model - Data Access Layer (DAL)
I have an asp.net mvc 2 application with multiple areas . Each area contains its own nested master page.
Some times we need one area to use the partial functionality from the other area.
Ex: "Account area" contains a feature for managing all user's contacts. "Job area" wants to borrow contacts feature, but just for work contacts.
We cannot simply redirect from one area to other, as this will change the visual context for the user. We want the features of the second area to appear as if they belong to the first area.
Is there any clean way of achieving this?
your Partial functionality implemenetd using partial pages? then You can cosnider to add these partial pages in shared folder.