How can I create multiple pages dynamically for a questionnaire app? - xamarin

I am using Xamarin Forms and I need to complete the following project:
I need to create a questionnaire that has the following hierarchy: sections, categories and questions. A sections must be like pages and each one has categories and each category questions. Something like this: http://blog.rodhowarth.com/2014/03/thoughts-on-xamarin-for-ios-development.html.
Someone knows how I can create a dynamic layout to do it?
Thanks

Related

Processwire Holder/Page implementation

How do you implement a holder/page pattern in Processwire. The idea is simple. One page type manages the list view, and usually contains very little native content. The primary function of this page is to provide a list of its child pages, providing a brief summary for each one, along with a link to its detail view. A second page type will represent the detail view for any given child page, which will typically have a custom template and content fields that make up its identity. Think of it think like a news listings, image galleries, even a Twitter timeline.
I can give examples for two different methods from a recent site I built with Processwire.
First is NEWS section:
I have a page called News and it's template is news-listing. Under News, I have news pages and their template is news-detail. news-listing template only accepts news-detail and news-listing for child pages. I allowed news-listing under news-listing if client needs to create sub listing pages under news.
News-listing template basically gets the news with
<?php $news = $page->children('template=news-detail'); ?>
Second is Products section
Site has different section for purposes. Like WOMENS, MENS, KIDS etc. The products are not shared among those main separation. I have a structure like below
MAIN SEPARATION
Products (products are listed under)
Categories (categories are listed under)
On product details page you can select multiple categories. On categories page products are listed like this. And on main separation page I have categories listed. Each of these page type has their own templates.
$products = $page->rootParent->find("template=product-detail,category={$page->id}");
Hope it helps
Just create pages under parent page then iterate on children pages. Processwire is slow though, better use Silverstripe it's more responsive.

showing gallery of category

I'm working on a website. My client want me to show the gallery of the categories on homepage. I tried featured categories beta extension, which didn't work. Please suggest some any other free extension which I can use or any methods display it.Please, I'm a budding developer.
You mean having a slider showing for each category in a block ?
You should consider duplicating the functions used for the main menu (see under /app/code/core/Mage/Catalog/Block/Navigation.php to see how it works) and combine it with your custom layout.
Or you can do it by yourself
Mage::helper('catalog/category')->getStoreCategories();
Will return an array of all level 1 categories in your current store.
Then you can run a foreach code to create your slideshow as you want.
Best Regards,

Shop This Look / Shop By Look - Create page with multiple products and quickcart

I’m wanting to build a Shop This Look page that will be easily editable and up-datable without too much hacking every time it’s updated.
Ideally I would like it to work like this: http://shop.crooksncastles.com/collections/shop-by-look-mens-look-2
In that I upload a photo of the look and then select the products to appear (Even if it’s through using their productids).
My thoughts on how to achieve this:
1) Create a category specifically for each look but have them set to hidden. Eg.
Looks>
* Look1
* Look2
* Look3
2) Then display the category in a static block on a CMS page. And then add the selected products to the look categories.
The idea is that a customer can select their size and add each product of the look on that page without leaving.
Is this the correct way to go about this?
Is there a better way to go about it?
I think the best way to do this would be to create your own module in app/local.
Also you should take a look at configurable products and their attributes, maybe that's enough for what you want.
The solution was to greater utilise the category function of magento.
I built two new themes within my template file one for category and one for product list.
The category structure I used was
SHOP THIS LOOK > LOOK 1
> LOOK 2
> LOOK 3
The template that was applied to the 'Shop This Look' parent category had all product list snippets removed and only displayed the images of the sub categories (Look 1, Look 2 and Look 3).
I then added the look image to each of the Look 1 - Look 3 categories and the products (via the category products tab).
The Look pages also had their own list.phtml file. That displayed the category (look) image on the left hand side, then a list of the products down the right hand side. I edited it so the product images / titles didn't link through to the product any more and added a 'View full product details' link at the bottom. This encourages people to add their products to the page from the look and remain on the page to add the rest of the look.
Another good way to look into buying a whole look as opposed to selecting individual options is bundled products.
Over all functionality is exactly how I wanted it. Updating is easy for a Magento layman and it looks great.
as an alternative approach you can check Altima Lookbook to create "Shop the look" experience.
It does it in a bit different way - allows you to place a slide (as part of slideshow) with multiple products linked with that slides as interactive tags, placed on top of actual image.

How to Retrieve Magento Core Variables in CMS Blocks or Pages?

Changing templates isn't an option in my situation and even so if I make a full HTML page with just two integrated "product blocks: (product name, product image, product price, buy me)", it seems easier to just call the two products you need and insert them directly.
So I'm curious to know if I can retrieve Magento {{variables}} such as product names, images, prices,... . I'm perfectly happy to use Magento Custom Variables to create functions to retrieve these, but I have no idea as to where to start. Any ideas would be appreciated.
As far as I know, it's not possible, nor is it sensible, to do this all from the CMS page.
You're best bet would be to create a widget. Widgets are reusable template tags that are very similar to the blocks used in the Magento layout system.
Once your widget is made, you can then call the widget in the CMS page with a product option, {{widget type="mywidgets/productname" product_id="1"}}, and modify the widget's output based on the product id entered.
The tutorial I've linked to is very good, and should be a great starting point.

Can I assign a category to more than one section in Joomla?

I want to assign the same category to multiple sections in Joomla. E.g. category cats will be child of the sections domestic-animals and adorable-anmials.
Is there a component or a trick to achieve this?
You can try searching all the functions that deal with section-category relationships and dirty-add this case there.
However I would not recommend doing this type of Joomla core hacking because you would need to keep track of all such hacks during core updates.
What do you want to accomplish? I guess there should be a workaround.
No, in Joomla! 1.0 and 1.5, category cannot be assigned to multiple sections.
To tackle that you may do the following
* creating duplicate articles of the categories you want and assign the duplicates articles to new category and then assign it to the section. so that the article copy will there be in two categories under same section
* using menus rather than dynamic lists of content items. so that with the menu structure you can work out the thing you need
* using various third party extensions that simulate assignment to multiple categories to same section.
* using key words to simulate categories and sections.
if you can explain me what you are exactly about to do. then i shall make it more specific
You can use alias to make cats as sections domestic-animals and adorable-animals.
If you want to make field that can assign multiple category you have to make edit the core code.

Resources