I had installed Quiz module in Drupal. In that case,If I choose Match the following quiz the first question gets four answer option, but the remaining questions also gets the four options.
What i need: I want to display like first question should get four options,second question should get three option,like wise the last question should get one option.Can anybody guide me how to display it?
Related
I am trying to modify an existing XML package of Aspdotnetstorefront Multistore. It's an internal XML package to show the variants of a certain product. What I did to start with was to copy-paste the whole code as is and throw it into a new custom XML package. The problem is that it works fine in the original package but not in the copied package. When I try to run it the function "AddtoCartForm" crashes the page and show the following error while display in red the line that contains the function call:
An HtmlHelper is required for this method. Make sure to specify one when you call the RunXmlPackage method
The format of the function is:
<xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 1, 1, $SelectedSize, $SelectedColor)" disable-output-escaping="yes"/>
I removed the line with the function just to be sure and then everything else works fine. I have no idea what's wrong here. Everything is identical unless by the structure of the url which calls the package:
For the internal package it is: \product\123456
For the custom package it is: \topic\packagename?ProductID=123456
I checked the XML produced by the SPs, the runtime and requested data and it's basically the same in both cases. The ProductID and VariantID values are there. SelectedColor and SelectedSize are not in the XML (not even in the internal package) so it may be just providing null value and probably it's not necessary anyway.
And there is more. If I supress the productid value from the url like this:
\topic\packagename
It won't crash the page (but also won't render because there will be not be any value to process).
In any way I cannot see why it wouldn't work just passing the variable in the querystring (that is basically what it does in the original package even in a different format) and the var value (productid) it getting there. However it seems that it is indeed the url format that is not pleasing the package but it doesn't make too much sense to me. I am over this for several days already and nothing I do seem to produce any positive result. :-(
I looked up online for some documentation but didn't get lucky and didn't find absolutely anything. In extreme cases I try to reach the Vortx support (and they usually answers me giving some valueable clue) but this time it seems that for this specific issue there will not be any help unless I pay an obscene hour fee and unfortunately it's out of question... LoL!
Any idea?
UPDATE: We don't use Multistore regular search tool. Due to the nature of our products (recycled car parts) we have a custom search tool that will try to find 'similar' items that MAY fit the user needs when we don't have the EXACT part. I don't know if you are ware of but several mechanical car parts are interchangeable among different models and makes (like alternators, AC compressors, battery, suspension, cooling system, etc), so when one of our customers needs a part to fix his car he won't tell us the part code; instead he will tell us the car model, year, and generic name of the part so we will try to find the part for him. It does mean that a certain Corolla part will fit perfectly in a Honda Accord and so on. Some times we have some parts in stock that MAY fit his car but we are not absolutely sure. When it happens we will show those parts for the customer and he will decide if he can take his chances. For the sake of customer comfort we want to show all these parts in the same page, but since they normally are variants of different products we cannot use the regular product page for this purpose (because the product page will only show variants of ONE product at time). For this reason I am going to write a package - a modified version of the product page - that will do that but I am struggling with the AddtoCartForm function. In fact I JUST found a workaround by adding the item to the cart accessing directly the /shoppingcart/addtocart script and now my problem is being to force it return to a specific url after to add the item to the shopping cart...
The error has to do with the topic token able to properly get html helper filled out.
I do question why testing is being done on a topic. To test a new product xmlpackage I normally change change the xmlpackage for just one product in a testing environment.
If chaning the product xmlpackage isn't possible then I suggest using the XmlPackageController/engine instead. Which is documented on page https://help.aspdotnetstorefront.com/1000/xml_packages.htm under the heading of "Invoking XML Packages by Themselves". If using the XmlPackageController make certain that the allowengine attribute is set to true in the xmlpackage otherwise that will throw an error as well.
I have a twofold type question regarding Anima's export to code feature in Sketch.
As a designer it's tempting to think of your work straight to code but, the reality is it doesn't quite work like that.
So, the first part of my question is: how good/reliable you think that code is?
The second part is an ask for help with the code.
So, I've created this super simple 2-page random quote generator in Sketch to call out bullshit on the President of Brazil (the crap the guy says...). I designed 3 breakpoints and all that but now that the code is here, I don't know how to do simple things like adding links to the buttons.
Plus, when you click the big green button on the homepage you should be taken to the results.html where a .js is going to generate a sentence.
The .js is ready to go.
Here's the prototype link: https://winter-glade-8944.animaapp.io
Anima is already in its first age , the big problem that most of time , it will be stuck in one page , and you can't get the code of other pages ,
the best solution is to duplicate your project on Figma , then extract the first page's code , then delete this page from anime , then generate the code for the second page ,, and so on
iam currently working on an android general quiz application,the application has three categories of questions physics,chemistry and maths.
These topics are also further divided into several sub topics(displayed in a listview), like physics is again divided into topics like geophysics,astrophysics, solid state physics etc.
Each topics gives questions related to that topic.
On clicking on any topic gets you to a screen which has a grid view with question numbers and questions you have answered in dark blue colour and not answered in light blue colour.On clicking the grid element you can directly move on to the specified question.The question has answers as multiple choices.The user need to choose any of it and it will indicate whether it is right or wrong.(and also mark that question as attended).
But iam having doubts on certain areas of code:
1) How to save the questions,options...?(if it has to be done by using files please provide me some sample codes thankyou)
2) Sometimes the questions and options show up some images how to handle this..?(this only happens in some cases so that all the other times the image has to be set null)
3) How can I access questions ,options from the file in which it has been saved.(I need also display the images if any present .
Please do reply
In sites like Quora or Stack Overflow, on a particular question, they are able to show questions that are possibly related. A quick look at them would reveal that they are merely looking for questions with similar text content. Is there any standard technique to find out such similar texts from a DB table where all texts are stored?
For example if you go to this question -
How to remove Application icon from Action Bar in Android?
it shows the following question as related -
Remove application icon and title from Honeycomb action bar .
If I have column questionText, where the questions texts are stored, in a table questions, how will I find out such related strings?
You'll need to extract keyword tokens from your documents and them find correlation between them. You can use a FOSS tool like Apache Lucene to do that for you.
They can rely on tags also.
I'm trying to convert the Adjuster example mentioned here: http://agiletoolkit.org/learn/understand/view/interactive
into a View that is able to show me the next/previous picture of a list of given images.
I guess the number in the example could be an index into an array of pictures.
I'm just not sure how to provide the list of pictures, when all the code is put in init() for the View, so no way to give it the picturelist before that...
Should I use memorize/recall for this list also to prevent it getting lost upon reload ?
is there another example that might help me?
I think you what you are doing can be much easier done with a classic JavaScript Lightbox script. You would supply it list of images and it would show one full-screen.
If not, you can use this:
https://gist.github.com/romaninsh/7217119
This will give you slides similar to the ones on http://agiletech.ie/
Be advised that this code is a little old.