|
Hi, I have recently written an article "Using Cursor Loader in Android".
Using Cursor Loader in Android
While submitting the article for approval, I have uploaded the source code zip file for download for the readers. But I am not able to view it on the webpage.
Is my Article approved? or Am I wrong anywhere? Why the source code is not available for download?
Regards,
Khushboo
|
|
|
|
|
You need to add the link of the uploaded file in your article by yourself. Just uploading will not show it in the article.
Go ahead and edit/update your article and add the upload link.
BTW, I see it approved and visible to others.
|
|
|
|
|
Sandeep, I have now edited the article and have added the download link. Apart from this, I have uploaded the zip file in the right hand side uploading section of the codeproject webapage. The download link on my article is:
"http://www.codeproject.com/KB/android/525313/CustomCursorLoader.zip"
Upon doing so, on my article, a simple hyperlink appears just like below:
Download Cursor Loader Example
Plain text which is clickable and code is downloadable.
You can see my article. I have published it.
Whereas, you can see the other user interface of Download widget on one of my colleague's article:
Integrating HTTP and HTTPS Connection
|
|
|
|
|
Khushboo Kaur wrote: I have now edited the article and have added the download link.
Yes, I checked and found it at the start of your article.
Khushboo Kaur wrote: Whereas, you can see the other user interface of Download widget on one of my colleague's article:
Reason is the styling/tag associated with download is missing. Not an issue. Do this around the download link and should be fine:
<ul class="download">
<li>
<a href="/KB/android/525313/CustomCursorLoader.zip">Download CustomCursorLoader.zip</a>
</li>
</ul>
The way you put the download link, it will appear as is.
Currently, you just have a a-href link. Wrap with the ul-li tag and the class 'download' as mentioned above to get similar look as others.
|
|
|
|
|
Thanks for the reply Sandeep! I have edited the post and have submitted for the approval.
I would like to say that, firstly my colleague did not add any code for downloading the source code. He just uploaded the code in the right hand panel of the web page. Secondly, he does not even know about this css class called "download". Still, the same download widget appears on his web page.
I also faced issues in uploading the code snippet which I have discussed in another Thread. Uploading complete class is not an issue, but when we think of attaching just code snippet, then we need to format it manually with the pre block.
|
|
|
|
|
Good to know you submitted the article.
What I asked was how to fix it. All that would happened by default if you would have used the article submit workflow where it asks if any download to be attached.
About code blocks, you need to always wrap it with a pre tag with a defined language to get proper colorization. You don't need to know any class or style. Put few line of code, select them and use 'code -> C#' for C# code lines. It will automatically apply the need HTML with attribute if any.
Since, I could not edit your article, I suggested you a way to do it yourself.
|
|
|
|